Skip to content

Commit

Permalink
python3Packages.fenics: pin boost186, add patches (NixOS#375132)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Feb 2, 2025
2 parents 416ef8d + b9024d4 commit e9f1b72
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions pkgs/development/python-modules/fenics/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
fetchurl,
fetchpatch,
blas,
boost,
boost186,
cmake,
doxygen,
eigen,
Expand Down Expand Up @@ -133,6 +133,13 @@ let
url = "https://bitbucket.org/fenics-project/ffc/downloads/ffc-${version}.tar.gz";
sha256 = "1zdg6pziss4va74pd7jjl8sc3ya2gmhpypccmyd8p7c66ji23y2g";
};
patches = [
(fetchpatch {
name = "fenics-ffc-numpy2-compat.patch";
url = "https://bitbucket.org/fenics-project/ffc/commits/245d15115b35b5ac091251fe6c84cc6474704b3c/raw";
hash = "sha256-TcLQZ44C+uR2ryxtCBjR/5Tjn7B0S4MqoYi0nlP8JwI=";
})
];
nativeBuildInputs = [ pybind11 ];
propagatedBuildInputs = [
dijitso
Expand Down Expand Up @@ -177,6 +184,11 @@ let
url = "https://bitbucket.org/fenics-project/dolfin/issues/attachments/1116/fenics-project/dolfin/1602778118.04/1116/0001-Use-__BYTE_ORDER__-instead-of-removed-Boost-endian.h.patch";
hash = "sha256-wPaDmPU+jaD3ce3nNEbvM5p8e3zBdLozamLTJ/0ai2c=";
})
(fetchpatch {
name = "fenics-boost-filesystem-1.85-compat.patch.";
url = "https://bitbucket.org/sblauth/dolfin/commits/16fa03887b3e9ec417c484ddf92db104cb9a93f9/raw";
hash = "sha256-ZMKfzeWlPre88cKzrj04Tj+nQWS4ixat0bBvyt3TJmk=";
})
];
# https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=dolfin&id=a965ad934f7b3d49a5e77fa6fb5e3c710ec2163e
postPatch = ''
Expand All @@ -197,7 +209,7 @@ let
pkg-config
];
buildInputs = [
boost
boost186
dijitso
eigen
ffc
Expand Down Expand Up @@ -265,7 +277,7 @@ let
'';
buildInputs = [
dolfin
boost
boost186
];

propagatedBuildInputs = [
Expand Down

0 comments on commit e9f1b72

Please sign in to comment.