about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/physics/fastnlo/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/physics/fastnlo/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/physics/fastnlo/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/physics/fastnlo/default.nix b/nixpkgs/pkgs/development/libraries/physics/fastnlo/default.nix
new file mode 100644
index 000000000000..916303f00cec
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/physics/fastnlo/default.nix
@@ -0,0 +1,33 @@
+{ lib, stdenv, fetchurl, boost, fastjet, gfortran, lhapdf, python2, root, yoda, zlib }:
+
+stdenv.mkDerivation rec {
+  pname = "fastnlo_toolkit";
+  version = "2.3.1pre-2402";
+
+  src = fetchurl {
+    url = "https://fastnlo.hepforge.org/code/v23/${pname}-${version}.tar.gz";
+    sha256 = "1h41xnqcz401x3zbs8i2dsb4xlhbv8i5ps0561p6y7gcyridgcbl";
+  };
+
+  buildInputs = [ boost fastjet gfortran gfortran.cc.lib lhapdf python2 root yoda ];
+  propagatedBuildInputs = [ zlib ];
+
+  preConfigure = ''
+    substituteInPlace ./fastnlotoolkit/Makefile.in \
+      --replace "-fext-numeric-literals" ""
+  '';
+
+  configureFlags = [
+    "--with-yoda=${yoda}"
+  ];
+
+  enableParallelBuilding = true;
+
+  meta = {
+    description = "A computer code to create and evaluate fast interpolation tables of pre-computed coefficients in perturbation theory for observables in hadron-induced processes";
+    license      = lib.licenses.gpl3;
+    homepage     = "http://fastnlo.hepforge.org";
+    platforms    = lib.platforms.unix;
+    maintainers = with lib.maintainers; [ veprbl ];
+  };
+}