mirror of
https://github.com/nix-community/flakelight.git
synced 2024-11-26 01:13:11 +01:00
Skip conversion of app attributes if they are already apps
This commit is contained in:
parent
dab3eb948d
commit
e91836b9d3
18
default.nix
18
default.nix
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user