Skip to content

Commit

Permalink
pythonPackages.pybind11: apply patch to properly get headers directories
Browse files Browse the repository at this point in the history
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] pybind/pybind11#1425
[2] #56082

(cherry picked from commit 94c3ac2)
  • Loading branch information
Ma27 authored and Robert Schütz committed Mar 13, 2019
1 parent cdc714f commit 2d8b128
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/development/python-modules/pybind11/default.nix
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi }:
{ lib, buildPythonPackage, fetchPypi, fetchpatch }:

buildPythonPackage rec {
pname = "pybind11";
Expand All @@ -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;

Expand Down

0 comments on commit 2d8b128

Please sign in to comment.