diff options
author | figsoda <figsoda@pm.me> | 2023-05-29 15:48:49 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-05-29 15:48:49 -0400 |
commit | 4431bab00361e3652201f1ae98d79913a36e3bc5 (patch) | |
tree | 76e25c1bb39f03a21497efadd7b5e44547cf5ab4 /pkgs/build-support/trivial-builders | |
parent | 300dbaff424a58433e20596677d1e88ad1f884e5 (diff) | |
download | nixpkgs-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.nix | 2 |
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; } |