agrep: patch to fix on musl, darwin
This commit is contained in:
parent
cd50057a61
commit
be2997353d
@ -12,6 +12,10 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "14addnwspdf2mxpqyrw8b84bb2257y43g5ccy4ipgrr91fmxq2sk";
|
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 = ''
|
installPhase = ''
|
||||||
install -Dm 555 agrep -t "$out/bin"
|
install -Dm 555 agrep -t "$out/bin"
|
||||||
install -Dm 444 docs/* -t "$out/doc"
|
install -Dm 444 docs/* -t "$out/doc"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user