Skip to content

Commit

Permalink
(fixed [byPassOfNixpkgsImpureEval missingArguments])
Browse files Browse the repository at this point in the history
  • Loading branch information
li committed Apr 1, 2023
1 parent 2613e69 commit b4e3577
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/top-level/flakeModule.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ let
type = mkPkgsFromArgsType;
description = "Returns `pkgs` from `system";
internal = true;
default = args@{ system, overlays ? config.nixpkgs.overlays, ... }:
import ./. args;
default = args:
import ./. ({
localSystem = { system = builtins.currentSystem; };
} // args);
};

allPkgsPerSystem = mkOption {
Expand All @@ -59,7 +61,7 @@ let
internal = true;
default =
let
mkPkgsFromSystem = system: mkPkgsFromArgs { inherit system; };
mkPkgsFromSystem = system: config.nixpkgs.mkPkgsFromArgs { inherit system; };
in
lib.genAttrs lib.systems.flakeExposed config.nixpkgs.mkPkgsFromSystem;
};
Expand Down

0 comments on commit b4e3577

Please sign in to comment.