Revert "writers: Allow string paths"

This reverts commit 33ffb05d39.
This commit is contained in:
Yureka 2021-06-28 22:40:40 +02:00
parent e87001bbc0
commit 7f07b70d08

View file

@ -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