professor: init at 2.3.3

+43
+41
pkgs/applications/science/physics/professor/default.nix
··· 1 + { lib, stdenv, fetchurl, eigen, makeWrapper, python3 }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "professor"; 5 + version = "2.3.3"; 6 + 7 + src = fetchurl { 8 + name = "Professor-${version}.tar.gz"; 9 + url = "https://professor.hepforge.org/downloads/?f=Professor-${version}.tar.gz"; 10 + sha256 = "17q026r2fpfxzf74d1013ksy3a9m57rcr2q164n9x02ci40bmib0"; 11 + }; 12 + 13 + postPatch = lib.optionalString stdenv.isDarwin '' 14 + substituteInPlace Makefile \ 15 + --replace '-shared -o' '-shared -install_name "$(out)/$@" -o' 16 + ''; 17 + 18 + nativeBuildInputs = [ python3.pkgs.cython makeWrapper ]; 19 + buildInputs = [ python3 eigen ]; 20 + propagatedBuildInputs = with python3.pkgs; [ iminuit numpy matplotlib yoda ]; 21 + 22 + CPPFLAGS = [ "-I${eigen}/include/eigen3" ]; 23 + PREFIX = placeholder "out"; 24 + 25 + postInstall = '' 26 + for prog in "$out"/bin/*; do 27 + wrapProgram "$prog" --set PYTHONPATH "$PYTHONPATH:$(toPythonPath "$out")" 28 + done 29 + ''; 30 + 31 + doInstallCheck = true; 32 + installCheckTarget = "check"; 33 + 34 + meta = with lib; { 35 + description = "A tuning tool for Monte Carlo event generators"; 36 + homepage = "https://professor.hepforge.org/"; 37 + license = licenses.unfree; # no license specified 38 + maintainers = [ maintainers.veprbl ]; 39 + platforms = platforms.unix; 40 + }; 41 + }
+2
pkgs/top-level/all-packages.nix
··· 28281 28281 28282 28282 elmerfem = callPackage ../applications/science/physics/elmerfem {}; 28283 28283 28284 + professor = callPackage ../applications/science/physics/professor { }; 28285 + 28284 28286 sacrifice = callPackage ../applications/science/physics/sacrifice {}; 28285 28287 28286 28288 sherpa = callPackage ../applications/science/physics/sherpa {};