Merge pull request #127826 from veprbl/pr/mcfm_init

mcfm: init at 10.0.1
This commit is contained in:
Sandro 2021-06-23 10:41:15 +02:00 committed by GitHub
commit 22bae36e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ lib, stdenv, fetchurl, cmake, gfortran, lhapdf }:
stdenv.mkDerivation rec {
pname = "MCFM";
version = "10.0.1";
src = fetchurl {
url = "https://mcfm.fnal.gov/downloads/${pname}-${version}.tar.gz";
sha256 = "sha256-3Dg4KoILb0XhgGkzItDh/1opCtYrrIvtbuALYqPUvE8=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace 'target_link_libraries(mcfm lhapdf_lib)' \
'target_link_libraries(mcfm ''${lhapdf_lib})'
'';
nativeBuildInputs = [ cmake gfortran ];
buildInputs = [ lhapdf ];
cmakeFlags = [
"-Duse_external_lhapdf=ON"
"-Duse_internal_lhapdf=OFF"
];
meta = with lib; {
description = "Monte Carlo for FeMtobarn processes";
homepage = "https://mcfm.fnal.gov";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ veprbl ];
platforms = lib.platforms.x86_64;
};
}

View file

@ -29881,6 +29881,11 @@ in
elmerfem = callPackage ../applications/science/physics/elmerfem {};
mcfm = callPackage ../applications/science/physics/MCFM {
stdenv = gccStdenv;
lhapdf = lhapdf.override { stdenv = gccStdenv; };
};
professor = callPackage ../applications/science/physics/professor { };
sacrifice = callPackage ../applications/science/physics/sacrifice {};