Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nlojet++: init at 4.1.3

+54
+22
pkgs/development/libraries/physics/nlojet/default.nix
··· 1 + { stdenv, fetchurl, fetchpatch }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "nlojet++"; 5 + version = "4.1.3"; 6 + 7 + src = fetchurl { 8 + url = "http://desy.de/~znagy/hep-programs/nlojet++/nlojet++-${version}.tar.gz"; 9 + sha256 = "18qfn5kjzvnyh29x40zm2maqzfmrnay9r58n8pfpq5lcphdhhv8p"; 10 + }; 11 + 12 + patches = [ 13 + ./nlojet_clang_fix.patch 14 + ]; 15 + 16 + meta = { 17 + homepage = "http://www.desy.de/~znagy/Site/NLOJet++.html"; 18 + license = stdenv.lib.licenses.gpl2; 19 + description = "Implementation of calculation of the hadron jet cross sections"; 20 + platforms = stdenv.lib.platforms.unix; 21 + }; 22 + }
+30
pkgs/development/libraries/physics/nlojet/nlojet_clang_fix.patch
··· 1 + diff -rupN nlojet++-4.1.3-orig/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h nlojet++-4.1.3/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h 2 + --- nlojet++-4.1.3-orig/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h 2010-05-11 11:06:00.000000000 -0400 3 + +++ nlojet++-4.1.3/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h 2014-08-23 03:22:51.000000000 -0400 4 + @@ -26,8 +26,11 @@ 5 + namespace nlo { 6 + 7 + // Spacializations 8 + + template<> 9 + class lorentzvector<std::complex<float> >; 10 + + template<> 11 + class lorentzvector<std::complex<double> >; 12 + + template<> 13 + class lorentzvector<std::complex<long double> >; 14 + 15 + template<> 16 + diff -rupN nlojet++-4.1.3-orig/nlo-hep/hep-lorentz/bits/hep-threevector_complex.h nlojet++-4.1.3/nlo-hep/hep-lorentz/bits/hep-threevector_complex.h 17 + --- nlojet++-4.1.3-orig/nlo-hep/hep-lorentz/bits/hep-threevector_complex.h 2010-05-11 11:06:00.000000000 -0400 18 + +++ nlojet++-4.1.3/nlo-hep/hep-lorentz/bits/hep-threevector_complex.h 2014-08-23 03:23:09.000000000 -0400 19 + @@ -26,8 +26,11 @@ 20 + namespace nlo { 21 + 22 + // Specializations 23 + + template<> 24 + class threevector<std::complex<float> >; 25 + + template<> 26 + class threevector<std::complex<double> >; 27 + + template<> 28 + class threevector<std::complex<long double> >; 29 + 30 + template<>
+2
pkgs/top-level/all-packages.nix
··· 16727 16727 16728 16728 lhapdf = callPackage ../development/libraries/physics/lhapdf { }; 16729 16729 16730 + nlojet = callPackage ../development/libraries/physics/nlojet { }; 16731 + 16730 16732 pythia = callPackage ../development/libraries/physics/pythia { }; 16731 16733 16732 16734 rivet = callPackage ../development/libraries/physics/rivet { };