tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
nlojet++: init at 4.1.3
Dmitry Kalinkin
9 years ago
1feb8989
3324d8dc
+54
3 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
physics
nlojet
default.nix
nlojet_clang_fix.patch
top-level
all-packages.nix
+22
pkgs/development/libraries/physics/nlojet/default.nix
···
1
1
+
{ stdenv, fetchurl, fetchpatch }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
name = "nlojet++";
5
5
+
version = "4.1.3";
6
6
+
7
7
+
src = fetchurl {
8
8
+
url = "http://desy.de/~znagy/hep-programs/nlojet++/nlojet++-${version}.tar.gz";
9
9
+
sha256 = "18qfn5kjzvnyh29x40zm2maqzfmrnay9r58n8pfpq5lcphdhhv8p";
10
10
+
};
11
11
+
12
12
+
patches = [
13
13
+
./nlojet_clang_fix.patch
14
14
+
];
15
15
+
16
16
+
meta = {
17
17
+
homepage = "http://www.desy.de/~znagy/Site/NLOJet++.html";
18
18
+
license = stdenv.lib.licenses.gpl2;
19
19
+
description = "Implementation of calculation of the hadron jet cross sections";
20
20
+
platforms = stdenv.lib.platforms.unix;
21
21
+
};
22
22
+
}
+30
pkgs/development/libraries/physics/nlojet/nlojet_clang_fix.patch
···
1
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
2
+
--- nlojet++-4.1.3-orig/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h 2010-05-11 11:06:00.000000000 -0400
3
3
+
+++ nlojet++-4.1.3/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h 2014-08-23 03:22:51.000000000 -0400
4
4
+
@@ -26,8 +26,11 @@
5
5
+
namespace nlo {
6
6
+
7
7
+
// Spacializations
8
8
+
+ template<>
9
9
+
class lorentzvector<std::complex<float> >;
10
10
+
+ template<>
11
11
+
class lorentzvector<std::complex<double> >;
12
12
+
+ template<>
13
13
+
class lorentzvector<std::complex<long double> >;
14
14
+
15
15
+
template<>
16
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
17
+
--- nlojet++-4.1.3-orig/nlo-hep/hep-lorentz/bits/hep-threevector_complex.h 2010-05-11 11:06:00.000000000 -0400
18
18
+
+++ nlojet++-4.1.3/nlo-hep/hep-lorentz/bits/hep-threevector_complex.h 2014-08-23 03:23:09.000000000 -0400
19
19
+
@@ -26,8 +26,11 @@
20
20
+
namespace nlo {
21
21
+
22
22
+
// Specializations
23
23
+
+ template<>
24
24
+
class threevector<std::complex<float> >;
25
25
+
+ template<>
26
26
+
class threevector<std::complex<double> >;
27
27
+
+ template<>
28
28
+
class threevector<std::complex<long double> >;
29
29
+
30
30
+
template<>
+2
pkgs/top-level/all-packages.nix
···
16727
16727
16728
16728
lhapdf = callPackage ../development/libraries/physics/lhapdf { };
16729
16729
16730
16730
+
nlojet = callPackage ../development/libraries/physics/nlojet { };
16731
16731
+
16730
16732
pythia = callPackage ../development/libraries/physics/pythia { };
16731
16733
16732
16734
rivet = callPackage ../development/libraries/physics/rivet { };