Merge pull request #88 from nrdxp/remove-apps

flake: remove apps to reduce complexity
This commit is contained in:
Timothy DeHerrera 2021-01-11 18:15:19 -07:00 committed by GitHub
commit d35195187f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,7 @@
defaultTemplate = self.templates.flk;
};
in
recursiveUpdate
(eachDefaultSystem
(system:
let
@ -70,15 +71,10 @@
overlays = [ devshell.overlay ];
};
packages = filterAttrs
(_: drv: drv.meta.broken != true)
(flattenTreeSystem system
packages = flattenTreeSystem system
(genPackages {
inherit self pkgs;
})
);
});
in
{
inherit packages;
@ -86,24 +82,8 @@
devShell = import ./shell.nix {
inherit pkgs;
};
apps =
let
validApps = attrNames (filterAttrs
(_: drv:
drv.meta.broken != true
&& pathExists "${drv}/bin"
)
self.packages."${osSystem}"
);
validSystems = attrNames packages;
filterBins = filterAttrs
(n: _: elem n validSystems && elem n validApps)
packages;
in
mapAttrs (_: drv: mkApp { inherit drv; }) filterBins;
})) // outputs;
}
)
)
outputs;
}