File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 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.
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 :
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 = {
You can’t perform that action at this time.
0 commit comments