coreutils: Refactor test patching.
So that more patches can easily be added and commented.
This commit is contained in:
parent
3e78331d96
commit
5524dac2fe
@ -54,10 +54,12 @@ stdenv.mkDerivation rec {
|
|||||||
for f in gnulib-tests/{test-chown.c,test-fchownat.c,test-lchown.c}; do
|
for f in gnulib-tests/{test-chown.c,test-fchownat.c,test-lchown.c}; do
|
||||||
echo "int main() { return 77; }" > "$f"
|
echo "int main() { return 77; }" > "$f"
|
||||||
done
|
done
|
||||||
'' + optionalString (stdenv.hostPlatform.libc == "musl") ''
|
'' + 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-parse-datetime.c
|
||||||
echo "int main() { return 77; }" > gnulib-tests/test-getlogin.c
|
echo "int main() { return 77; }" > gnulib-tests/test-getlogin.c
|
||||||
'';
|
''
|
||||||
|
]);
|
||||||
|
|
||||||
outputs = [ "out" "info" ];
|
outputs = [ "out" "info" ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user