python3Packages.lhapdf: fix for python 3.10+
This commit is contained in:
@@ -15,9 +15,14 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace src/GridPDF.cc --replace '#include <locale>' '#include <xlocale.h>'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [ makeWrapper ]
|
||||
++ lib.optionals (lib.versionAtLeast python.version "3.10") [ python.pkgs.cython ];
|
||||
buildInputs = [ python ];
|
||||
|
||||
preBuild = lib.optionalString (lib.versionAtLeast python.version "3.10") ''
|
||||
rm wrappers/python/lhapdf.cpp
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru = {
|
||||
|
||||
Reference in New Issue
Block a user