git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #26795 from veprbl/root_6.10.00

root: 6.09.02 -> 6.10.00

commitad42e5f6e5dacf7c5215e8a930e3a90577c5d24e authorJörg Thalheim <Mic92@users.noreply.github.com> dateSun 25 Jun 2017, 09:14 (9 years ago) parentfcd5804ada12f4
2 files changed+5−32
pkgs/applications/science/misc/root/ROOT-8728-extra.patch−25 pkgs/applications/science/misc/root/default.nix+5−7
pkgs/applications/science/misc/root/ROOT-8728-extra.patch−25
@@ -1,16 +1,3 @@
1−diff --git a/core/base/inc/ROOT/StringConv.hxx b/core/base/inc/ROOT/StringConv.hxx
2−index 629fc18..4efa54a 100644
3−--- a/core/base/inc/ROOT/StringConv.hxx
4−+++ b/core/base/inc/ROOT/StringConv.hxx
5−@@ -89,7 +89,7 @@ EFromHumanReadableSize FromHumanReadableSize(std::string_view str, T &value)
6− size_t size = str.size();
7− size_t cur;
8− // Parse leading numeric factor
9−- const double coeff = stod(str, &cur);
10−+ const double coeff = stod(static_cast<std::string>(str), &cur);
11−
12− // Skip any intermediate white space
13− while (cur<size && isspace(str[cur])) ++cur;
141diff --git a/core/metacling/src/TCling.cxx b/core/metacling/src/TCling.cxx
152index d71cb74..076facb 100644
163--- a/core/metacling/src/TCling.cxx
@@ -186,15 +173,3 @@ index 94a8b28..0b67867 100644
186173 DataInfo(), "" );
187174
188175 MethodBase *method = (dynamic_cast<MethodBase*>(im));
189−diff -aru a/core/base/inc/TString.h b/core/base/inc/TString.h
190−--- a/core/base/inc/TString.h
191−+++ b/core/base/inc/TString.h
192−@@ -106,7 +106,7 @@
193− char operator[](Ssiz_t i) const; // Index with bounds checking
194−
195− operator std::string_view() const { return std::string_view(Data(),fExtent); }
196−- operator std::string() const { return std::string_view(Data(),fExtent).to_string(); }
197−+ operator std::string() const { return static_cast<std::string>(std::string_view(Data(),fExtent)); }
198−
199− const char *Data() const;
200− Ssiz_t Length() const { return fExtent; }
pkgs/applications/science/misc/root/default.nix+5−7
@@ -4,11 +4,11 @@
44
55stdenv.mkDerivation rec {
66 name = "root-${version}";
7− version = "6.09.02";
7+ version = "6.10.00";
88
99 src = fetchurl {
1010 url = "https://root.cern.ch/download/root_v${version}.source.tar.gz";
11− sha256 = "0fc6b0l7bw66cyckxs4ikvyzcv1zlfx88205jx153smdhih0jj2k";
11+ sha256 = "1rxqcpqf1b3sxig5xbh3mkvarhg9lgj2f0gv0j48klfw8kgfwlsp";
1212 };
1313
1414 buildInputs = [ cmake pcre pkgconfig python2 zlib libxml2 lzma gsl ]
@@ -23,10 +23,6 @@ stdenv.mkDerivation rec {
2323 ./thisroot.patch
2424
2525 # https://sft.its.cern.ch/jira/browse/ROOT-8728
26− (fetchpatch {
27− url = "https://sft.its.cern.ch/jira/secure/attachment/20025/0001-std-string_view-has-no-more-to_string.patch";
28− sha256 = "0ngyk960xfrcsj4vhr1ax8h85fx0g1cfycxi3k35a6ych2zmyg8q";
29− })
3026 ./ROOT-8728-extra.patch
3127 ];
3228
@@ -47,6 +43,7 @@ stdenv.mkDerivation rec {
4743 "-Dfftw3=OFF"
4844 "-Dfitsio=OFF"
4945 "-Dfortran=OFF"
46+ "-Dimt=OFF"
5047 "-Dgfal=OFF"
5148 "-Dgviz=OFF"
5249 "-Dhdfs=OFF"
@@ -66,7 +63,8 @@ stdenv.mkDerivation rec {
6663 "-Dxml=ON"
6764 "-Dxrootd=OFF"
6865 ]
69− ++ stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.lib.getDev stdenv.cc.libc}/include";
66+ ++ stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.lib.getDev stdenv.cc.libc}/include"
67+ ++ stdenv.lib.optional stdenv.isDarwin "-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks";
7068
7169 enableParallelBuilding = true;
7270