tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
lhapdf: fix python module on darwin
Dmitry Kalinkin
3 years ago
092a6d7f
6fe0b230
+17
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
physics
lhapdf
default.nix
+17
-1
pkgs/development/libraries/physics/lhapdf/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, python, makeWrapper }:
1
1
+
{ lib, stdenv, fetchurl, fetchpatch, python, makeWrapper }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "lhapdf";
···
8
8
url = "https://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz";
9
9
sha256 = "sha256-V0Nc1pXilwZdU+ab0pCQdlyTSTa2qXX/jFWXZvIjA1k=";
10
10
};
11
11
+
12
12
+
patches = [
13
13
+
# avoid silent compilation failures
14
14
+
(fetchpatch {
15
15
+
name = "lhapdf-propagate_returncode.patch";
16
16
+
url = "https://gitlab.com/hepcedar/lhapdf/-/commit/2806ac795c7e4a69281d9c2a6a8bba5423f37e74.diff";
17
17
+
hash = "sha256-j8txlt0n5gpUy9zeuWKx+KRXL3HMMaGcwOxr908966k=";
18
18
+
})
19
19
+
20
20
+
# workaround "ld: -stack_size option can only be used when linking a main executable" on darwin
21
21
+
(fetchpatch {
22
22
+
name = "lhapdf-Wl_stack_size.patch";
23
23
+
url = "https://gitlab.com/hepcedar/lhapdf/-/commit/463764d6613837b6ab57ecaf13bc61be2349e5e4.diff";
24
24
+
hash = "sha256-AbDs7gtU5HsJG5n/solMzu2bjX1juxfUIqIt5KmNffU=";
25
25
+
})
26
26
+
];
11
27
12
28
# The Apple SDK only exports locale_t from xlocale.h whereas glibc
13
29
# had decided that xlocale.h should be a part of locale.h