3
0
Fork 0
forked from mirrors/nixpkgs

agrep: patch to fix on musl, darwin

This commit is contained in:
Will Dietz 2018-01-13 13:34:27 -06:00
parent cd50057a61
commit be2997353d

View file

@ -12,6 +12,10 @@ stdenv.mkDerivation rec {
sha256 = "14addnwspdf2mxpqyrw8b84bb2257y43g5ccy4ipgrr91fmxq2sk";
};
# Related: https://github.com/Wikinaut/agrep/pull/11
prePatch = stdenv.lib.optionalString (stdenv.hostPlatform.isMusl || stdenv.isDarwin) ''
sed -i '1i#include <sys/stat.h>' checkfil.c newmgrep.c recursiv.c
'';
installPhase = ''
install -Dm 555 agrep -t "$out/bin"
install -Dm 444 docs/* -t "$out/doc"