From 7f07b70d08e19322c2b982be8e37746419e26add Mon Sep 17 00:00:00 2001 From: Yureka Date: Mon, 28 Jun 2021 22:40:40 +0200 Subject: [PATCH] Revert "writers: Allow string paths" This reverts commit 33ffb05d390987802fe939f9c9a3d6a451076535. --- pkgs/build-support/writers/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/build-support/writers/default.nix b/pkgs/build-support/writers/default.nix index 5a70bcbe3cf6..47919c251af1 100644 --- a/pkgs/build-support/writers/default.nix +++ b/pkgs/build-support/writers/default.nix @@ -15,12 +15,12 @@ rec { name = last (builtins.split "/" nameOrPath); in - pkgs.runCommandLocal name (if types.path.check content then { - inherit interpreter; - contentPath = content; - } else { + pkgs.runCommandLocal name (if (types.str.check content) then { inherit content interpreter; passAsFile = [ "content" ]; + } else { + inherit interpreter; + contentPath = content; }) '' # On darwin a script cannot be used as an interpreter in a shebang but # there doesn't seem to be a limit to the size of shebang and multiple