summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2020-08-15 16:20:28 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2020-09-08 19:17:58 +0200
commit645ff94de8839600bea512a4c3e2044459053902 (patch)
treec4d37f50406985d0bc5db731a620c737b79de6bc /pkgs
parentzfs: fix build w/gibc-2.32 (diff)
downloadnixpkgs-645ff94de8839600bea512a4c3e2044459053902.tar.gz
xfitter: fix build w/glibc-2.32
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/science/physics/xfitter/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/science/physics/xfitter/default.nix b/pkgs/applications/science/physics/xfitter/default.nix
index b992851e40a8..cbb097350c71 100644
--- a/pkgs/applications/science/physics/xfitter/default.nix
+++ b/pkgs/applications/science/physics/xfitter/default.nix
@@ -1,4 +1,6 @@
-{ stdenv, fetchurl, apfel, apfelgrid, applgrid, blas, gfortran, lhapdf, lapack, libyaml, lynx, mela, root5, qcdnum, which }:
+{ stdenv, fetchurl, apfel, apfelgrid, applgrid, blas, gfortran, lhapdf, lapack, libyaml, lynx
+, mela, root5, qcdnum, which, libtirpc
+}:
stdenv.mkDerivation rec {
pname = "xfitter";
@@ -37,7 +39,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ gfortran which ];
buildInputs =
- [ apfel apfelgrid applgrid blas lhapdf lapack mela root5 qcdnum ]
+ [ apfel apfelgrid applgrid blas lhapdf lapack mela root5 qcdnum libtirpc ]
# pdf2yaml requires fmemopen and open_memstream which are not readily available on Darwin
++ stdenv.lib.optional (!stdenv.isDarwin) libyaml
;
@@ -47,6 +49,9 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
+ NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
+ NIX_LDFLAGS = [ "-ltirpc" ];
+
meta = with stdenv.lib; {
description = "The xFitter project is an open source QCD fit framework ready to extract PDFs and assess the impact of new data";
license = licenses.gpl3;