1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

reptyr: fixup build with glibc-2.25

This commit is contained in:
Vladimír Čunát 2017-02-22 16:54:19 +01:00
parent 1d1dc2dcc3
commit 7ccd6f25f0
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -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;