Skip to content

Commit

Permalink
coreutils: Refactor test patching.
Browse files Browse the repository at this point in the history
So that more patches can easily be added and commented.
  • Loading branch information
nh2 committed Aug 14, 2019
1 parent 3e78331 commit 5524dac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkgs/tools/misc/coreutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];

Expand Down

0 comments on commit 5524dac

Please sign in to comment.