From 2775ef4d9455fe8f08e8146f82fb33a3da6da35c Mon Sep 17 00:00:00 2001 From: Archit Gupta Date: Fri, 14 Apr 2023 21:00:59 -0700 Subject: [PATCH] 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. --- default.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/default.nix b/default.nix index e678c92..1f028d2 100644 --- a/default.nix +++ b/default.nix @@ -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