mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
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";
|
||||
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)"];
|
||||
meta = {
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
|
Loading…
Reference in New Issue
Block a user