Skip to content

Commit 6c5e2ab

Browse files
committed
imp: constrain script envs until iohk-nix deprecated envs removed
1 parent f0deeb4 commit 6c5e2ab

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

nix/scripts-submit-api.nix

+7-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ let
2525
passthru = { inherit service; };
2626
};
2727

28-
scripts = forEnvironments (environment: recurseIntoAttrs {
28+
# Until complete removal of some iohk-nix deprecated environments which have
29+
# dangling dependencies such as shelley_qa, explicitly declare the
30+
# environments we we want included.
31+
environments' = pkgs.lib.getAttrs [ "mainnet" "preprod" "preview" "sanchonet" ] environments;
32+
33+
scripts = forEnvironmentsCustom (environment: recurseIntoAttrs {
2934
submit-api = mkScript environment;
30-
});
35+
}) environments';
3136
in scripts

nix/scripts.nix

+7-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ let
3333
exePath = "${scriptBin}/bin/cardano-node-${service.environment}";
3434
};
3535

36-
in forEnvironments (environment: recurseIntoAttrs rec {
36+
# Until complete removal of some iohk-nix deprecated environments which have
37+
# dangling dependencies such as shelley_qa, explicitly declare the
38+
# environments we we want included.
39+
environments' = pkgs.lib.getAttrs [ "mainnet" "preprod" "preview" "sanchonet" ] environments;
40+
41+
in forEnvironmentsCustom (environment: recurseIntoAttrs rec {
3742
node = mkScript environment;
38-
})
43+
}) environments'

0 commit comments

Comments
 (0)