From bdb31e3096777aa6cfe75880503376b938a77c62 Mon Sep 17 00:00:00 2001 From: Robin Stumm Date: Fri, 7 Oct 2022 14:52:33 +0200 Subject: [PATCH] fix impurity --- nix/default.nix | 2 +- nix/nixos/cardano-node-service.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/default.nix b/nix/default.nix index e8dc0d48a46..ebb18718667 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -1,3 +1,3 @@ { ... }@args: with (import ./flake-compat.nix args); -defaultNix.legacyPackages.${builtins.currentSystem} +defaultNix.legacyPackages.${args.system or builtins.currentSystem} diff --git a/nix/nixos/cardano-node-service.nix b/nix/nixos/cardano-node-service.nix index 6a86ce88242..f450bcfc0de 100644 --- a/nix/nixos/cardano-node-service.nix +++ b/nix/nixos/cardano-node-service.nix @@ -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.