diff options
author | Niklas Hambüchen <mail@nh2.me> | 2019-05-13 22:10:39 +0200 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2019-08-14 19:16:43 +0200 |
commit | 5524dac2fea0651a0b5f5477fb5795e7cb566873 (patch) | |
tree | 70861c04fcf74abdb1b80e789a2407d7ca75180d /pkgs/tools/misc/coreutils | |
parent | 3e78331d96a91681c93f8ffe81975ed9339dbe81 (diff) | |
download | nixlib-5524dac2fea0651a0b5f5477fb5795e7cb566873.tar nixlib-5524dac2fea0651a0b5f5477fb5795e7cb566873.tar.gz nixlib-5524dac2fea0651a0b5f5477fb5795e7cb566873.tar.bz2 nixlib-5524dac2fea0651a0b5f5477fb5795e7cb566873.tar.lz nixlib-5524dac2fea0651a0b5f5477fb5795e7cb566873.tar.xz nixlib-5524dac2fea0651a0b5f5477fb5795e7cb566873.tar.zst nixlib-5524dac2fea0651a0b5f5477fb5795e7cb566873.zip |
coreutils: Refactor test patching.
So that more patches can easily be added and commented.
Diffstat (limited to 'pkgs/tools/misc/coreutils')
-rw-r--r-- | pkgs/tools/misc/coreutils/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix index c80bb64d0bbd..d9dc1949845f 100644 --- a/pkgs/tools/misc/coreutils/default.nix +++ b/pkgs/tools/misc/coreutils/default.nix @@ -54,10 +54,12 @@ stdenv.mkDerivation rec { for f in gnulib-tests/{test-chown.c,test-fchownat.c,test-lchown.c}; do echo "int main() { return 77; }" > "$f" done - '' + optionalString (stdenv.hostPlatform.libc == "musl") '' - echo "int main() { return 77; }" > gnulib-tests/test-parse-datetime.c - echo "int main() { return 77; }" > gnulib-tests/test-getlogin.c - ''; + '' + optionalString (stdenv.hostPlatform.libc == "musl") (lib.concatStringsSep "\n" [ + '' + echo "int main() { return 77; }" > gnulib-tests/test-parse-datetime.c + echo "int main() { return 77; }" > gnulib-tests/test-getlogin.c + '' + ]); outputs = [ "out" "info" ]; |