From 966f65b60dc1ded40016b79fea625bd8c8e50c28 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 29 May 2023 15:48:49 -0400 Subject: [PATCH] writeTextFile: fix when executable is not a bool (cherry picked from commit 4431bab00361e3652201f1ae98d79913a36e3bc5) --- pkgs/build-support/trivial-builders/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/trivial-builders/default.nix b/pkgs/build-support/trivial-builders/default.nix index d3cb22a1f535..7152f9a1be41 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; }