Skip to content

Commit 8f86929

Browse files
committed
haskell.nix: supply cardano-tracer to cardano-tracer-test
1 parent 99a86f8 commit 8f86929

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@
441441
overlay = final: prev: {
442442
cardanoNodeProject = flake.project.${final.system};
443443
cardanoNodePackages = mkCardanoNodePackages final.cardanoNodeProject;
444-
inherit (final.cardanoNodePackages) cardano-node cardano-cli cardano-submit-api bech32 plutus-example;
444+
inherit (final.cardanoNodePackages) cardano-node cardano-cli cardano-submit-api cardano-tracer bech32 locli plutus-example;
445445

446446
# TODO, fix this
447447
#db-analyser = ouroboros-network-snapshot.haskellPackages.ouroboros-consensus-cardano.components.exes.db-analyser;

nix/haskell.nix

+6
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ haskell-nix.cabalProject' ({ pkgs
128128
export CARDANO_CLI=${config.hsPkgs.cardano-cli.components.exes.cardano-cli}/bin/cardano-cli${pkgs.stdenv.hostPlatform.extensions.executable}
129129
export CARDANO_NODE_SRC=${src}
130130
";
131+
packages.cardano-tracer.components.tests.cardano-tracer-test.preCheck =
132+
let
133+
cmp = config.hsPkgs.cardano-tracer.components.exes.cardano-tracer;
134+
deps = cmp.executableToolDepends;
135+
in
136+
''PATH=${lib.makeBinPath deps}:$PATH'';
131137
packages.cardano-node-chairman.components.tests.chairman-tests.build-tools =
132138
lib.mkForce [
133139
pkgs.lsof

0 commit comments

Comments
 (0)