summary refs log tree commit diff
path: root/pkgs/os-specific/linux/libbpf
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2020-09-07 18:41:21 +0200
committerVladimír Čunát <v@cunat.cz>2020-09-07 18:44:17 +0200
commit2c145f45889481a0d92f7d05ba8c8bd0818502bd (patch)
treed238e01b8f00621aa07a9fb19eb5ddee157eebcc /pkgs/os-specific/linux/libbpf
parentfed923247a7eca63607f8f2c4347af2f0842c61e (diff)
downloadnixpkgs-2c145f45889481a0d92f7d05ba8c8bd0818502bd.tar
nixpkgs-2c145f45889481a0d92f7d05ba8c8bd0818502bd.tar.gz
nixpkgs-2c145f45889481a0d92f7d05ba8c8bd0818502bd.tar.bz2
nixpkgs-2c145f45889481a0d92f7d05ba8c8bd0818502bd.tar.lz
nixpkgs-2c145f45889481a0d92f7d05ba8c8bd0818502bd.tar.xz
nixpkgs-2c145f45889481a0d92f7d05ba8c8bd0818502bd.tar.zst
nixpkgs-2c145f45889481a0d92f7d05ba8c8bd0818502bd.zip
libbpf: fixup build after the last staging iteration
... and add myself into meta.maintainers :-)
Diffstat (limited to 'pkgs/os-specific/linux/libbpf')
-rw-r--r--pkgs/os-specific/linux/libbpf/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/libbpf/default.nix b/pkgs/os-specific/linux/libbpf/default.nix
index 0f2f9aa86f4..1c54b93e8ab 100644
--- a/pkgs/os-specific/linux/libbpf/default.nix
+++ b/pkgs/os-specific/linux/libbpf/default.nix
@@ -25,6 +25,9 @@ stdenv.mkDerivation rec {
   patchPhase = ''
     substituteInPlace ../scripts/check-reallocarray.sh \
       --replace '/bin/rm' 'rm'
+    # Without patching this the config-test program will be refused by our CC wrapper.
+    chmod +w ../scripts
+    sed -e '2a NIX_ENFORCE_PURITY=0' -i ../scripts/check-reallocarray.sh
   '';
 
   # FIXME: Multi-output requires some fixes to the way the pkgconfig file is
@@ -37,7 +40,7 @@ stdenv.mkDerivation rec {
     description = "Upstream mirror of libbpf";
     homepage    = "https://github.com/libbpf/libbpf";
     license     = with licenses; [ lgpl21 /* or */ bsd2 ];
-    maintainers = with maintainers; [ thoughtpolice ];
+    maintainers = with maintainers; [ thoughtpolice vcunat ];
     platforms   = platforms.linux;
   };
 }