1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

trivial: fix pkgs.writeText test to pass string

Passing a non-string value and relying on pkgs.writeText to implicitly call
builtins.toString is incorrect.
This commit is contained in:
Hraban Luyat 2024-06-14 11:04:15 -04:00
parent 294f7a767f
commit d544b1259a

View file

@ -2,7 +2,7 @@
let
stri = writeText "pathToTest";
txt1 = stri "abc";
txt2 = stri hello;
txt2 = stri (builtins.toString hello);
res = concatText "textToTest" [ txt1 txt2 ];
in
runCommand "test-concatPaths" { } ''