outputs: fix flake check for packages

This commit is contained in:
Wroclaw 2025-04-01 15:19:21 +02:00
parent c5246a1b46
commit 721cdd4f1a
2 changed files with 10 additions and 4 deletions

View file

@ -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