Skip conversion of app attributes if they are already apps

This commit is contained in:
Archit Gupta 2023-04-13 22:57:23 -07:00
parent dab3eb948d
commit e91836b9d3

View File

@ -134,13 +134,17 @@ let
touch $out touch $out
''; '';
mkApp = lib: program: { isApp = x: (x ? type) && (x.type == "app") && (x ? program);
type = "app";
program = mkApp = lib: app:
if lib.isDerivation program if isApp app then app
then lib.getExe program else {
else program; type = "app";
}; program =
if lib.isDerivation app
then lib.getExe app
else app;
};
eachSystem = fn: foldAttrs mergeAttrs { } (map eachSystem = fn: foldAttrs mergeAttrs { } (map
(system: mapAttrs (system: mapAttrs