ouptuts: create packages set
This commit is contained in:
parent
ec91266fcd
commit
be62805cc6
1 changed files with 18 additions and 0 deletions
18
outputs.nix
18
outputs.nix
|
@ -7,11 +7,29 @@ let
|
|||
|
||||
lib = (import "${inputs.nixpkgs}/lib").extend (import ./lib/overlays/version-info-fixup.nix { revision = inputs.lock.nixpkgs.revision; });
|
||||
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
|
||||
# (system -> x) -> { [system] := x }
|
||||
forEachSystem = x: lib.pipe systems [
|
||||
(builtins.map (system: { name = system; value = x system; }))
|
||||
builtins.listToAttrs
|
||||
];
|
||||
|
||||
self = {
|
||||
inherit inputs lib 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; };
|
||||
attrnames = builtins.attrNames nixpkgs;
|
||||
in
|
||||
builtins.removeAttrs (self.pkgsForSystem system) attrnames
|
||||
);
|
||||
overlays = {
|
||||
cosmicPackages = import ./pkgs/overlays/cosmic-packages.nix { inherit inputs; };
|
||||
selfExpr = import ./pkgs/overlays/selfExpr.nix { nixpkgsPath = inputs.nixpkgs; };
|
||||
|
|
Loading…
Add table
Reference in a new issue