Merge pull request #121411 from veprbl/pr/xfitter_darwin_fix
xfitter: fix for darwin
This commit is contained in:
commit
1cfcfccc6e
|
@ -39,9 +39,10 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ gfortran which ];
|
nativeBuildInputs = [ gfortran which ];
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ apfel apfelgrid applgrid blas lhapdf lapack mela root5 qcdnum libtirpc ]
|
[ apfel apfelgrid applgrid blas lhapdf lapack mela root5 qcdnum ]
|
||||||
# pdf2yaml requires fmemopen and open_memstream which are not readily available on Darwin
|
# pdf2yaml requires fmemopen and open_memstream which are not readily available on Darwin
|
||||||
++ lib.optional (!stdenv.isDarwin) libyaml
|
++ lib.optional (!stdenv.isDarwin) libyaml
|
||||||
|
++ lib.optional (stdenv.hostPlatform.libc == "glibc") libtirpc
|
||||||
;
|
;
|
||||||
propagatedBuildInputs = [ lynx ];
|
propagatedBuildInputs = [ lynx ];
|
||||||
|
|
||||||
|
@ -49,8 +50,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
|
NIX_CFLAGS_COMPILE = lib.optional (stdenv.hostPlatform.libc == "glibc") "-I${libtirpc.dev}/include/tirpc";
|
||||||
NIX_LDFLAGS = [ "-ltirpc" ];
|
NIX_LDFLAGS = lib.optional (stdenv.hostPlatform.libc == "glibc") "-ltirpc";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The xFitter project is an open source QCD fit framework ready to extract PDFs and assess the impact of new data";
|
description = "The xFitter project is an open source QCD fit framework ready to extract PDFs and assess the impact of new data";
|
||||||
|
|
Loading…
Reference in New Issue