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

6 years ago
let
nixpkgs = import <nixpkgs-stable>;
6 years ago
buildPath = path:
{system ? builtins.currentSystem}:
let
nixpkgsWithOverlays = nixpkgs {
inherit system;
overlays = [
(import ../default.nix)
];
};
in
nixpkgsWithOverlays.lib.getAttrFromPath path nixpkgsWithOverlays;
6 years ago
fakeOverlay = (import ../default.nix) null null;
packages = builtins.attrNames fakeOverlay.morepkgs;
generateBuilder = packageName: buildPath ["morepkgs" packageName];
generatePackagePair = packageName: {
name = packageName;
value = generateBuilder packageName;
6 years ago
};
jobs = builtins.listToAttrs (map generatePackagePair packages);
6 years ago
in jobs