Merge pull request #21632 from veprbl/sherpa_fix
sherpa: fix sqlite dependency
This commit is contained in:
commit
39ed261c4c
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, gfortran, sqlite }:
|
{ stdenv, fetchurl, gfortran, hepmc, fastjet, lhapdf, rivet, sqlite }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "sherpa-${version}";
|
name = "sherpa-${version}";
|
||||||
@ -9,10 +9,20 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "13vkz6w8kqyv8sgy3mxnlps5ykml5rnlj50vjj0pp9rgbl5y8ali";
|
sha256 = "13vkz6w8kqyv8sgy3mxnlps5ykml5rnlj50vjj0pp9rgbl5y8ali";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ gfortran sqlite ];
|
buildInputs = [ gfortran sqlite lhapdf rivet ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--with-sqlite3=${sqlite.dev}"
|
||||||
|
"--enable-hepmc2=${hepmc}"
|
||||||
|
"--enable-fastjet=${fastjet}"
|
||||||
|
"--enable-lhapdf=${lhapdf}"
|
||||||
|
"--enable-rivet=${rivet}"
|
||||||
|
];
|
||||||
|
|
||||||
|
CXXFLAGS = "-std=c++11"; # needed for rivet on OSX
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Simulation of High-Energy Reactions of PArticles in lepton-lepton, lepton-photon, photon-photon, lepton-hadron and hadron-hadron collisions";
|
description = "Simulation of High-Energy Reactions of PArticles in lepton-lepton, lepton-photon, photon-photon, lepton-hadron and hadron-hadron collisions";
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = stdenv.lib.licenses.gpl2;
|
||||||
|
@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ boost lhapdf root yoda ];
|
buildInputs = [ boost lhapdf root yoda ];
|
||||||
|
|
||||||
|
CXXFLAGS="-std=c++11"; # for yoda
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--with-yoda=${yoda}"
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fastnlo, rivet, sherpa }:
|
{ stdenv, fetchurl, fastnlo, rivet, pkgconfig, sherpa }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mcgrid-${version}";
|
name = "mcgrid-${version}";
|
||||||
@ -10,6 +10,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ fastnlo rivet ];
|
buildInputs = [ fastnlo rivet ];
|
||||||
|
propagatedNativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace mcgrid.pc.in \
|
substituteInPlace mcgrid.pc.in \
|
||||||
|
33
pkgs/development/libraries/physics/rivet/darwin.patch
Normal file
33
pkgs/development/libraries/physics/rivet/darwin.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
diff --git a/include/Rivet/Tools/osdir.hh b/include/Rivet/Tools/osdir.hh
|
||||||
|
index 05f06ca..59af7de 100644
|
||||||
|
--- a/include/Rivet/Tools/osdir.hh
|
||||||
|
+++ b/include/Rivet/Tools/osdir.hh
|
||||||
|
@@ -21,7 +21,7 @@
|
||||||
|
|
||||||
|
/// @cond OSDIR
|
||||||
|
|
||||||
|
-#if defined(unix) || defined(__unix) || defined(__unix__)
|
||||||
|
+#if defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__)
|
||||||
|
#define OSLINK_OSDIR_POSIX
|
||||||
|
#elif defined(_WIN32)
|
||||||
|
#define OSLINK_OSDIR_WINDOWS
|
||||||
|
@@ -32,18 +32,7 @@
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#if defined(OSLINK_OSDIR_NOTSUPPORTED)
|
||||||
|
-
|
||||||
|
-namespace oslink
|
||||||
|
-{
|
||||||
|
- class directory
|
||||||
|
- {
|
||||||
|
- public:
|
||||||
|
- directory(const std::string&) { }
|
||||||
|
- operator void*() const { return (void*)0; }
|
||||||
|
- std::string next() { return ""; }
|
||||||
|
- };
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
+#error Platform misdetected or oslink is not implemented
|
||||||
|
#elif defined(OSLINK_OSDIR_POSIX)
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
pythonPath = []; # python wrapper support
|
pythonPath = []; # python wrapper support
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./darwin.patch # configure relies on impure sw_vers to -Dunix
|
||||||
|
];
|
||||||
|
|
||||||
latex = texlive.combine { inherit (texlive)
|
latex = texlive.combine { inherit (texlive)
|
||||||
scheme-basic
|
scheme-basic
|
||||||
collection-pstricks
|
collection-pstricks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user