Fix mkApp

Using lib.getExe makes mkApp not work for derivations that are files.
Thus, this makes it so that the derivation is used as is. If an
executable in the derivation's directory is needed, a string path can be
used.
This commit is contained in:
Archit Gupta 2023-04-14 21:00:59 -07:00
parent b1fe8e8e17
commit 2775ef4d94

View File

@ -153,13 +153,7 @@ let
mkApp = lib: app:
if isApp app then app
else {
type = "app";
program =
if lib.isDerivation app
then lib.getExe app
else app;
};
else { type = "app"; program = "${app}"; };
eachSystem = fn: foldAttrs mergeAttrs { } (map
(system: mapAttrs