reptyr: fixup build with glibc-2.25
This commit is contained in:
parent
1d1dc2dcc3
commit
7ccd6f25f0
@ -7,6 +7,12 @@ stdenv.mkDerivation rec {
|
|||||||
url = "https://github.com/nelhage/reptyr/archive/reptyr-${version}.tar.gz";
|
url = "https://github.com/nelhage/reptyr/archive/reptyr-${version}.tar.gz";
|
||||||
sha256 = "07pfl0rkgm8m3f3jy8r9l2yvnhf8lgllpsk3mh57mhzdxq8fagf7";
|
sha256 = "07pfl0rkgm8m3f3jy8r9l2yvnhf8lgllpsk3mh57mhzdxq8fagf7";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
|
||||||
|
postPatch = ''
|
||||||
|
sed 1i'#include <sys/sysmacros.h>' -i platform/linux/linux.c
|
||||||
|
'';
|
||||||
|
|
||||||
makeFlags = ["PREFIX=$(out)"];
|
makeFlags = ["PREFIX=$(out)"];
|
||||||
meta = {
|
meta = {
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user