summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-05-03 02:04:29 +0200
committerGitHub <noreply@github.com>2021-05-03 02:04:29 +0200
commit280c8cf540342414661b89158c707fb9ef74a91e (patch)
tree787558813a1166d2ab437a8560810d3cc37a7d34
parentd67fc7660364bc5bacfa76dfd31976857e006150 (diff)
py3c: fix build with darwin (#121447)
-rw-r--r--pkgs/development/libraries/py3c/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/libraries/py3c/default.nix b/pkgs/development/libraries/py3c/default.nix
index 2a89161ef3893..eec051f0cc1cf 100644
--- a/pkgs/development/libraries/py3c/default.nix
+++ b/pkgs/development/libraries/py3c/default.nix
@@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
     sha256 = "04i2z7hrig78clc59q3i1z2hh24g7z1bfvxznlzxv00d4s57nhpi";
   };
 
+  postPatch = lib.optionalString stdenv.cc.isClang ''
+    substituteInPlace test/setup.py \
+      --replace "'-Werror', " ""
+  '';
+
   makeFlags = [
     "prefix=${placeholder "out"}"
   ];
@@ -26,6 +31,6 @@ stdenv.mkDerivation rec {
     homepage = "https://github.com/encukou/py3c";
     description = "Python 2/3 compatibility layer for C extensions";
     license = licenses.mit;
-    maintainers = with maintainers; [ ajs124 ];
+    maintainers = with maintainers; [ ajs124 dotlambda ];
   };
 }