Skip to content

Commit 53eba66

Browse files
committed
fix pure nix evaluation
There was access to impure builtins in the nix evaluation so pure evaluation was not possible.
1 parent a0b0003 commit 53eba66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nix/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{ ... }@args:
22
with (import ./flake-compat.nix args);
3-
defaultNix.legacyPackages.${builtins.currentSystem}
3+
defaultNix.legacyPackages.${args.system or builtins.currentSystem}

nix/nixos/cardano-node-service.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ in {
183183

184184
cardanoNodePackages = mkOption {
185185
type = types.attrs;
186-
default = pkgs.cardanoNodePackages or (import ../. {}).cardanoNodePackages;
186+
default = pkgs.cardanoNodePackages or (import ../. { inherit (pkgs) system; }).cardanoNodePackages;
187187
defaultText = "cardano-node packages";
188188
description = ''
189189
The cardano-node packages and library that should be used.

0 commit comments

Comments
 (0)