mirror of
https://github.com/nix-community/flakelight.git
synced 2025-08-18 18:58:40 +02:00
Skip conversion of app attributes if they are already apps
This commit is contained in:
12
default.nix
12
default.nix
@@ -134,12 +134,16 @@ let
|
|||||||
touch $out
|
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";
|
type = "app";
|
||||||
program =
|
program =
|
||||||
if lib.isDerivation program
|
if lib.isDerivation app
|
||||||
then lib.getExe program
|
then lib.getExe app
|
||||||
else program;
|
else app;
|
||||||
};
|
};
|
||||||
|
|
||||||
eachSystem = fn: foldAttrs mergeAttrs { } (map
|
eachSystem = fn: foldAttrs mergeAttrs { } (map
|
||||||
|
Reference in New Issue
Block a user