From 5b511ca6f33ac0a5b0eda435e05aa4465d1ee79c Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 22 May 2021 23:01:18 +0100 Subject: [PATCH] python3Packages.pyvex: fix build for darwin --- pkgs/development/python-modules/pyvex/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/pyvex/default.nix b/pkgs/development/python-modules/pyvex/default.nix index 618dfef4171..c9fbedbbfd4 100644 --- a/pkgs/development/python-modules/pyvex/default.nix +++ b/pkgs/development/python-modules/pyvex/default.nix @@ -18,6 +18,10 @@ buildPythonPackage rec { sha256 = "sha256-cWQdrGKJyGieBow3TiMj/uB2crIF32Kvl5tVUKg/z+E="; }; + postPatch = lib.optionalString stdenv.isDarwin '' + substituteInPlace vex/Makefile-gcc --replace '/usr/bin/ar' 'ar' + ''; + propagatedBuildInputs = [ archinfo bitstring