lol

lhapdf: fix python module on darwin

+17 -1
+17 -1
pkgs/development/libraries/physics/lhapdf/default.nix
··· 1 - { lib, stdenv, fetchurl, python, makeWrapper }: 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 + 12 + patches = [ 13 + # avoid silent compilation failures 14 + (fetchpatch { 15 + name = "lhapdf-propagate_returncode.patch"; 16 + url = "https://gitlab.com/hepcedar/lhapdf/-/commit/2806ac795c7e4a69281d9c2a6a8bba5423f37e74.diff"; 17 + hash = "sha256-j8txlt0n5gpUy9zeuWKx+KRXL3HMMaGcwOxr908966k="; 18 + }) 19 + 20 + # workaround "ld: -stack_size option can only be used when linking a main executable" on darwin 21 + (fetchpatch { 22 + name = "lhapdf-Wl_stack_size.patch"; 23 + url = "https://gitlab.com/hepcedar/lhapdf/-/commit/463764d6613837b6ab57ecaf13bc61be2349e5e4.diff"; 24 + hash = "sha256-AbDs7gtU5HsJG5n/solMzu2bjX1juxfUIqIt5KmNffU="; 25 + }) 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