outputs: fix flake check for packages
This commit is contained in:
parent
c5246a1b46
commit
721cdd4f1a
2 changed files with 10 additions and 4 deletions
12
outputs.nix
12
outputs.nix
|
@ -20,9 +20,15 @@ self = {
|
|||
outPath = selfPath;
|
||||
modifiedNixpkgs = import ./pkgs/top-level/impure.nix;
|
||||
modifiedNixpkgsPure = import ./pkgs/top-level/default.nix;
|
||||
packagesForSystem = system: self.modifiedNixpkgsPure { localSystem = system; };
|
||||
packages = forEachSystem (system: let
|
||||
nixpkgs = import "${inputs.nixpkgs}/pkgs/top-level/default.nix" { localSystem = system; };
|
||||
packagesForSystem = system: self.modifiedNixpkgsPure {
|
||||
inherit inputs;
|
||||
localSystem = system;
|
||||
};
|
||||
legacyPackages = forEachSystem (system: let
|
||||
nixpkgs = import "${inputs.nixpkgs}/pkgs/top-level/default.nix" {
|
||||
inherit inputs;
|
||||
localSystem = system;
|
||||
};
|
||||
attrnames = builtins.attrNames nixpkgs;
|
||||
in
|
||||
builtins.removeAttrs (self.packagesForSystem system) attrnames
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs ? import ../../inputs.nix {}
|
||||
{ inputs ? {}
|
||||
, uninitializedNixpkgs ? import "${inputs.nixpkgs}/pkgs/top-level/default.nix"
|
||||
, ...
|
||||
} @ args:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue