mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
13 lines
352 B
Nix
13 lines
352 B
Nix
{ callPackage, lib, pkgs, runCommand, concatText, writeText, hello, emptyFile }:
|
|
let
|
|
stri = writeText "pathToTest";
|
|
txt1 = stri "abc";
|
|
txt2 = stri hello;
|
|
res = concatText "textToTest" [ txt1 txt2 ];
|
|
in
|
|
runCommand "test-concatPaths" { } ''
|
|
diff -U3 <(cat ${txt1} ${txt2}) ${res}
|
|
diff -U3 ${concatText "void" []} ${emptyFile}
|
|
touch $out
|
|
''
|