Skip to content

Commit ee03bcc

Browse files
johnalotoskiJimbo4350
authored andcommitted
tx-generator: use set-git-rev for release bin version stamping
1 parent aec8314 commit ee03bcc

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

flake.nix

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
# Add some executables from other relevant packages
132132
inherit (bech32.components.exes) bech32;
133133
inherit (ouroboros-consensus-cardano.components.exes) db-analyser db-synthesizer db-truncater snapshot-converter;
134-
# Add cardano-node and cardano-cli with their git revision stamp.
134+
# Add cardano-node, cardano-cli and tx-generator with their git revision stamp.
135135
# Keep available an alternative without the git revision, like the other
136136
# passthru (profiled and asserted in nix/haskell.nix) that
137137
# have no git revision but for the same compilation alternative.
@@ -142,11 +142,18 @@
142142
{passthru = {noGitRev = node;};}
143143
;
144144
cardano-cli =
145-
let cli = cardano-cli.components.exes.cardano-cli;
145+
let cli = cardano-cli.components.exes.cardano-cli;
146146
in lib.recursiveUpdate
147147
(set-git-rev cli)
148148
{passthru = {noGitRev = cli;};}
149149
;
150+
} // optionalAttrs (project.exes ? tx-generator) {
151+
tx-generator =
152+
let tx-gen = project.exes.tx-generator;
153+
in lib.recursiveUpdate
154+
(set-git-rev tx-gen)
155+
{passthru = {noGitRev = tx-gen;};}
156+
;
150157
});
151158

152159
mkCardanoNodePackages = project:
@@ -458,7 +465,7 @@
458465
customConfig.haskellNix
459466
];
460467
cardanoNodePackages = mkCardanoNodePackages final.cardanoNodeProject;
461-
inherit (final.cardanoNodePackages) cardano-node cardano-cli cardano-submit-api cardano-tracer bech32 locli db-analyser;
468+
inherit (final.cardanoNodePackages) cardano-node cardano-cli cardano-submit-api cardano-tracer bech32 locli db-analyser tx-generator;
462469
};
463470
nixosModules = {
464471
cardano-node = {

0 commit comments

Comments
 (0)