Skip to content

Commit 3238dd0

Browse files
johnalotoskiJimbo4350
authored andcommitted
tx-generator: use passthru noGitRev for workbench ops
1 parent ee03bcc commit 3238dd0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

nix/nixos/tx-generator-service.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ in pkgs.commonLib.defServiceModule
5757

5858
svcPackageSelector =
5959
pkgs: ## Local:
60-
pkgs.cardanoNodePackages.tx-generator
60+
## Avoid rebuilding on every commit because of `set-git-rev`.
61+
pkgs.cardanoNodePackages.tx-generator.passthru.noGitRev
6162
## Imported by another repo, that adds an overlay:
6263
or pkgs.tx-generator;
6364
## TODO: that's actually a bit ugly and could be improved.

nix/workbench/backend/nomad.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ let
166166
};
167167
tx-generator = rec {
168168
# Local reference only used if not "cloud".
169-
nix-store-path = pkgs.cardanoNodePackages.tx-generator;
169+
nix-store-path = pkgs.cardanoNodePackages.tx-generator.passthru.noGitRev;
170170
flake-reference = "github:intersectmbo/cardano-node";
171-
flake-output = "cardanoNodePackages.tx-generator";
171+
flake-output = "cardanoNodePackages.tx-generator.passthru.noGitRev";
172172
};
173173
}
174174
;

nix/workbench/shell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ project.shellFor {
144144
cardano-topology
145145
cardano-tracer
146146
locli
147-
tx-generator
147+
tx-generator.passthru.noGitRev
148148
]
149149
# Include the workbench as a derivation or use the sources directly ?
150150
++ lib.optionals (!workbenchDevMode) [ workbench.workbench ]

0 commit comments

Comments
 (0)