Skip to content

Commit

Permalink
fix pure nix evaluation
Browse files Browse the repository at this point in the history
There was access to impure builtins in the nix evaluation
so pure evaluation was not possible.
  • Loading branch information
dermetfan committed Nov 9, 2022
1 parent 9cd1f11 commit 48f1971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nix/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{ ... }@args:
with (import ./flake-compat.nix args);
defaultNix.legacyPackages.${builtins.currentSystem}
defaultNix.legacyPackages.${args.system or builtins.currentSystem}
2 changes: 1 addition & 1 deletion nix/nixos/cardano-node-service.nix
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ in {

cardanoNodePackages = mkOption {
type = types.attrs;
default = pkgs.cardanoNodePackages or (import ../. {}).cardanoNodePackages;
default = pkgs.cardanoNodePackages or (import ../. { inherit (pkgs) system; }).cardanoNodePackages;
defaultText = "cardano-node packages";
description = ''
The cardano-node packages and library that should be used.
Expand Down

0 comments on commit 48f1971

Please sign in to comment.