git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #128097 from Infinisil/writers-paths

writers: Allow string paths

commit61e983dbac933aa26cf913aef47aa92a5c40143c authorLassulus <github@lassul.us> dateFri 25 Jun 2021, 18:18 (5 years ago) parent759f70933ffb05
1 file changed+4−4
pkgs/build-support/writers/default.nix+4−4
pkgs/build-support/writers/default.nix+4−4
@@ -15,12 +15,12 @@ rec {
1515 name = last (builtins.split "/" nameOrPath);
1616 in
1717
18− pkgs.runCommandLocal name (if (types.str.check content) then {
19− inherit content interpreter;
20− passAsFile = [ "content" ];
21− } else {
18+ pkgs.runCommandLocal name (if types.path.check content then {
2219 inherit interpreter;
2320 contentPath = content;
21+ } else {
22+ inherit content interpreter;
23+ passAsFile = [ "content" ];
2424 }) ''
2525 # On darwin a script cannot be used as an interpreter in a shebang but
2626 # there doesn't seem to be a limit to the size of shebang and multiple