git.iko.soy/typeable/nixpkgs
on master help sign in
xfitter: enable WITH_YAML support on darwin
commit9c8f6efc550a04213236c308bc2f88d176527efa authorDmitry Kalinkin <dmitry.kalinkin@gmail.com> dateTue 24 Aug 2021, 04:32 (5 years ago) parentb0f07a1
1 file changed+3−3
pkgs/applications/science/physics/xfitter/default.nix+3−3
pkgs/applications/science/physics/xfitter/default.nix+3−3
@@ -1,5 +1,6 @@
11{ lib, stdenv, fetchurl, apfel, apfelgrid, applgrid, blas, gfortran, lhapdf, lapack, libyaml, lynx
22, mela, root5, qcdnum, which, libtirpc
3+, memorymappingHook, memstreamHook
34}:
45
56stdenv.mkDerivation rec {
@@ -36,9 +37,8 @@ stdenv.mkDerivation rec {
3637
3738 nativeBuildInputs = [ gfortran which ];
3839 buildInputs =
39− [ apfel apfelgrid applgrid blas lhapdf lapack mela root5 qcdnum ]
40− # pdf2yaml requires fmemopen and open_memstream which are not readily available on Darwin
41− ++ lib.optional (!stdenv.isDarwin) libyaml
40+ [ apfel apfelgrid applgrid blas lhapdf libyaml lapack mela root5 qcdnum ]
41+ ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook memstreamHook ]
4242 ++ lib.optional (stdenv.hostPlatform.libc == "glibc") libtirpc
4343 ;
4444 propagatedBuildInputs = [ lynx ];