about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pybind11
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2019-03-07 22:26:45 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2019-03-08 07:08:44 +0100
commit94c3ac25747538f2c5057fae6dc50a32e51a3b9b (patch)
tree2e069761fc2b26019308eaac1b9f09764ba80eb6 /pkgs/development/python-modules/pybind11
parent7b25f9c8338446762ab132db6eb2866ddb7fc62d (diff)
pythonPackages.pybind11: apply patch to properly get headers directories
It seems as the `pybind11` build code returns the Python headers
directory (where the `pybind11` headers are stored as well on traditional
setups) rather than returning the dedicated prefix[1].

An exemplary fallout is the broken build of `pyopencl`[2].

[1] https://github.com/pybind/pybind11/issues/1425
[2] https://github.com/NixOS/nixpkgs/pull/56082
Diffstat (limited to 'pkgs/development/python-modules/pybind11')
-rw-r--r--pkgs/development/python-modules/pybind11/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pybind11/default.nix b/pkgs/development/python-modules/pybind11/default.nix
index 0bdac65940621..f49c50185db75 100644
--- a/pkgs/development/python-modules/pybind11/default.nix
+++ b/pkgs/development/python-modules/pybind11/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildPythonPackage, fetchPypi }:
+{ lib, buildPythonPackage, fetchPypi, fetchpatch }:
 
 buildPythonPackage rec {
   pname = "pybind11";
@@ -9,6 +9,13 @@ buildPythonPackage rec {
     sha256 = "1kz1z2cg3q901q9spkdhksmcfiskaghzmbb9ivr5mva856yvnak4";
   };
 
+  patches = [
+    (fetchpatch {
+      url = https://github.com/pybind/pybind11/commit/44a40dd61e5178985cfb1150cf05e6bfcec73042.patch;
+      sha256 = "047nzyfsihswdva96hwchnp4gj2mlbiqvmkdnhxrfi9sji8x31ka";
+    })
+  ];
+
   # Current PyPi version does not include test suite
   doCheck = false;