You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
650 B
Nix
27 lines
650 B
Nix
6 years ago
|
let
|
||
6 years ago
|
nixpkgs = import <nixpkgs-stable>;
|
||
6 years ago
|
|
||
|
buildPath = path:
|
||
|
{system ? builtins.currentSystem}:
|
||
|
let
|
||
|
nixpkgsWithOverlays = nixpkgs {
|
||
|
inherit system;
|
||
|
overlays = [
|
||
|
(import ../default.nix)
|
||
|
];
|
||
|
};
|
||
|
in
|
||
6 years ago
|
nixpkgsWithOverlays.lib.getAttrFromPath path nixpkgsWithOverlays;
|
||
6 years ago
|
|
||
6 years ago
|
fakeOverlay = (import ../default.nix) null null;
|
||
|
packages = builtins.attrNames fakeOverlay.morepkgs;
|
||
6 years ago
|
generateBuilder = packageName: buildPath ["morepkgs" packageName];
|
||
6 years ago
|
|
||
|
generatePackagePair = packageName: {
|
||
|
name = packageName;
|
||
|
value = generateBuilder packageName;
|
||
6 years ago
|
};
|
||
6 years ago
|
|
||
|
jobs = builtins.listToAttrs (map generatePackagePair packages);
|
||
6 years ago
|
in jobs
|