Skip to content

Commit

Permalink
mod - getting nix to build cardano-tx-body.
Browse files Browse the repository at this point in the history
I'm not entirely sure how to use nix.  I hope that someone with a good eye for this stuff takes a look at this commit.
  • Loading branch information
Matthew Eric Bassett committed Jul 8, 2020
1 parent 4599895 commit 322d715
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions default.nix
Expand Up @@ -61,6 +61,8 @@ let
# Grab the executable component of our package.
inherit (self.haskellPackages.cardano-db-sync.components.exes)
cardano-db-sync;
inherit (self.haskellPackages.cardano-db-sync.components.exes)
cardano-tx-body;
inherit (self.haskellPackages.cardano-db-sync-extended.components.exes)
cardano-db-sync-extended;

Expand Down
10 changes: 10 additions & 0 deletions nix/haskell.nix
Expand Up @@ -69,6 +69,11 @@ let
subDir = "cardano-db-sync";
name = "cardano-db-sync";
};
packages.cardano-tx-body.src = haskell-nix.haskellLib.cleanGit {
src = ../.;
subDir = "cardano-db-sync";
name = "cardano-tx-body";
};
packages.cardano-db-sync-extneded.src = haskell-nix.haskellLib.cleanGit {
src = ../.;
subDir = "cardano-db-sync-extended";
Expand All @@ -84,6 +89,7 @@ let
# split data output for ekg to reduce closure size
packages.ekg.components.library.enableSeparateDataOutput = true;
packages.cardano-db-sync.configureFlags = [ "--ghc-option=-Wall" "--ghc-option=-Werror" ];
packages.cardano-tx-body.configureFlags = [ "--ghc-option=-Wall" "--ghc-option=-Werror" ];
packages.cardano-db-sync-extended.configureFlags = [ "--ghc-option=-Wall" "--ghc-option=-Werror" ];
enableLibraryProfiling = profiling;
}
Expand All @@ -99,6 +105,10 @@ let
# todo, this shrinks the docker image by ~100mb
#dontStrip = false;
};
packages.cardano-tx-body.components.exes.cardano-tx-body = {
# todo, this shrinks the docker image by ~100mb
#dontStrip = false;
};
}
];
pkg-def-extras = [
Expand Down
1 change: 1 addition & 0 deletions shell.nix
Expand Up @@ -16,6 +16,7 @@ let

packages = ps: with ps; [
ps.cardano-db-sync
ps.cardano-tx-body
ps.cardano-db-sync-extended
];

Expand Down

0 comments on commit 322d715

Please sign in to comment.