mirror of
https://github.com/nix-community/flakelight.git
synced 2024-11-22 15:33:10 +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
|
||||
'';
|
||||
|
||||
mkApp = lib: program: {
|
||||
type = "app";
|
||||
program =
|
||||
if lib.isDerivation program
|
||||
then lib.getExe program
|
||||
else program;
|
||||
};
|
||||
isApp = x: (x ? type) && (x.type == "app") && (x ? program);
|
||||
|
||||
mkApp = lib: app:
|
||||
if isApp app then app
|
||||
else {
|
||||
type = "app";
|
||||
program =
|
||||
if lib.isDerivation app
|
||||
then lib.getExe app
|
||||
else app;
|
||||
};
|
||||
|
||||
eachSystem = fn: foldAttrs mergeAttrs { } (map
|
||||
(system: mapAttrs
|
||||
|
Loading…
Reference in New Issue
Block a user