Skip to content

Commit

Permalink
Merge pull request #2001 from input-output-hk/rvl/nix-shell-buildLatex
Browse files Browse the repository at this point in the history
nix: Make it possible to get a nix-shell in latex spec directory
  • Loading branch information
nc6 committed Nov 19, 2020
2 parents 7c64ed8 + 9e32d81 commit 608b7fa
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 20 deletions.
4 changes: 3 additions & 1 deletion byron/cddl-spec/default.nix
@@ -1,4 +1,6 @@
{ lib, latex, texlive, gitMinimal, cddl, cbor-diag }:
{ pkgs ? import ../../nix/default.nix {} }:

with pkgs;

latex.buildLatex {
name = "blocks-cddl-spec";
Expand Down
4 changes: 3 additions & 1 deletion byron/chain/formal-spec/default.nix
@@ -1,4 +1,6 @@
{ lib, latex, texlive, gitMinimal }:
{ pkgs ? import ../../../nix/default.nix {} }:

with pkgs;

latex.buildLatex {
name = "byron-chain-spec";
Expand Down
4 changes: 3 additions & 1 deletion byron/ledger/formal-spec/default.nix
@@ -1,4 +1,6 @@
{ lib, latex, texlive, gitMinimal }:
{ pkgs ? import ../../../nix/default.nix {} }:

with pkgs;

latex.buildLatex {
name = "byron-ledger-spec";
Expand Down
20 changes: 10 additions & 10 deletions default.nix
Expand Up @@ -54,16 +54,16 @@ let
# nix-build -A specs -o spec
#
specs = recurseIntoAttrs {
byron-ledger = pkgs.callPackage ./byron/ledger/formal-spec {};
byron-chain = pkgs.callPackage ./byron/chain/formal-spec {};
small-step-semantics = pkgs.callPackage ./semantics/formal-spec {};
shelley-ledger = pkgs.callPackage ./shelley/chain-and-ledger/formal-spec {};
pool-ranking = pkgs.callPackage ./shelley/pool-ranking {};
shelley-ma = pkgs.callPackage ./shelley-ma/formal-spec {};
goguen-ledger = pkgs.callPackage ./goguen/formal-spec {};
delegation-design = pkgs.callPackage ./shelley/design-spec {};
non-integer-calculations = pkgs.callPackage ./shelley/chain-and-ledger/dependencies/non-integer/doc {};
blocks-cddl = pkgs.callPackage ./byron/cddl-spec {};
byron-ledger = pkgs.callPackage ./byron/ledger/formal-spec/default.nix {};
byron-chain = pkgs.callPackage ./byron/chain/formal-spec/default.nix {};
small-step-semantics = pkgs.callPackage ./semantics/formal-spec/default.nix {};
shelley-ledger = pkgs.callPackage ./shelley/chain-and-ledger/formal-spec/default.nix {};
pool-ranking = pkgs.callPackage ./shelley/pool-ranking/default.nix {};
shelley-ma = pkgs.callPackage ./shelley-ma/formal-spec/default.nix {};
goguen-ledger = pkgs.callPackage ./goguen/formal-spec/default.nix {};
delegation-design = pkgs.callPackage ./shelley/design-spec/default.nix {};
non-integer-calculations = pkgs.callPackage ./shelley/chain-and-ledger/dependencies/non-integer/doc/default.nix {};
blocks-cddl = pkgs.callPackage ./byron/cddl-spec/default.nix {};
};

doc = {
Expand Down
4 changes: 3 additions & 1 deletion goguen/formal-spec/default.nix
@@ -1,4 +1,6 @@
{ lib, latex, texlive }:
{ pkgs ? import ../../nix/default.nix {} }:

with pkgs;

latex.buildLatex {
name = "goguen-spec";
Expand Down
4 changes: 3 additions & 1 deletion semantics/formal-spec/default.nix
@@ -1,4 +1,6 @@
{ lib, latex, texlive, gitMinimal }:
{ pkgs ? import ../../nix/default.nix {} }:

with pkgs;

latex.buildLatex {
name = "small-step-semantics-spec";
Expand Down
4 changes: 3 additions & 1 deletion shelley-ma/formal-spec/default.nix
@@ -1,4 +1,6 @@
{ lib, latex, texlive }:
{ pkgs ? import ../../nix/default.nix {} }:

with pkgs;

latex.buildLatex {
name = "shelley-ma-spec";
Expand Down
@@ -1,4 +1,6 @@
{ lib, latex, texlive, gitMinimal }:
{ pkgs ? import ../../../../../nix/default.nix {} }:

with pkgs;

latex.buildLatex {
name = "non-integer-calculations-spec";
Expand Down
4 changes: 3 additions & 1 deletion shelley/chain-and-ledger/formal-spec/default.nix
@@ -1,4 +1,6 @@
{ lib, latex, texlive, gitMinimal }:
{ pkgs ? import ../../../nix/default.nix {} }:

with pkgs;

latex.buildLatex {
name = "shelley-ledger-spec";
Expand Down
4 changes: 3 additions & 1 deletion shelley/design-spec/default.nix
@@ -1,4 +1,6 @@
{ lib, latex, texlive, gitMinimal }:
{ pkgs ? import ../../nix/default.nix {} }:

with pkgs;

latex.buildLatex {
name = "delegation-design-spec";
Expand Down
4 changes: 3 additions & 1 deletion shelley/pool-ranking/default.nix
@@ -1,4 +1,6 @@
{ lib, latex, texlive, gitMinimal }:
{ pkgs ? import ../../nix/default.nix {} }:

with pkgs;

latex.buildLatex {
name = "pool-ranking";
Expand Down

0 comments on commit 608b7fa

Please sign in to comment.