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
12
default.nix
12
default.nix
@ -134,12 +134,16 @@ let
|
||||
touch $out
|
||||
'';
|
||||
|
||||
mkApp = lib: 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 program
|
||||
then lib.getExe program
|
||||
else program;
|
||||
if lib.isDerivation app
|
||||
then lib.getExe app
|
||||
else app;
|
||||
};
|
||||
|
||||
eachSystem = fn: foldAttrs mergeAttrs { } (map
|
||||
|
Loading…
Reference in New Issue
Block a user