summary refs log tree commit diff
path: root/pkgs/build-support/trivial-builders
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-05-29 15:48:49 -0400
committerfigsoda <figsoda@pm.me>2023-05-29 15:48:49 -0400
commit4431bab00361e3652201f1ae98d79913a36e3bc5 (patch)
tree76e25c1bb39f03a21497efadd7b5e44547cf5ab4 /pkgs/build-support/trivial-builders
parent300dbaff424a58433e20596677d1e88ad1f884e5 (diff)
downloadnixpkgs-4431bab00361e3652201f1ae98d79913a36e3bc5.tar
nixpkgs-4431bab00361e3652201f1ae98d79913a36e3bc5.tar.gz
nixpkgs-4431bab00361e3652201f1ae98d79913a36e3bc5.tar.bz2
nixpkgs-4431bab00361e3652201f1ae98d79913a36e3bc5.tar.lz
nixpkgs-4431bab00361e3652201f1ae98d79913a36e3bc5.tar.xz
nixpkgs-4431bab00361e3652201f1ae98d79913a36e3bc5.tar.zst
nixpkgs-4431bab00361e3652201f1ae98d79913a36e3bc5.zip
writeTextFile: fix when executable is not a bool
Diffstat (limited to 'pkgs/build-support/trivial-builders')
-rw-r--r--pkgs/build-support/trivial-builders/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/trivial-builders/default.nix b/pkgs/build-support/trivial-builders/default.nix
index d3cb22a1f53..7152f9a1be4 100644
--- a/pkgs/build-support/trivial-builders/default.nix
+++ b/pkgs/build-support/trivial-builders/default.nix
@@ -141,7 +141,7 @@ rec {
     runCommand name
       { inherit text executable checkPhase allowSubstitutes preferLocalBuild;
         passAsFile = [ "text" ];
-        meta = lib.optionalAttrs (executable && matches != null) {
+        meta = lib.optionalAttrs (toString executable != "" && matches != null) {
           mainProgram = lib.head matches;
         } // meta;
       }