summary refs log tree commit diff
path: root/pkgs/applications/science/misc/root/5.nix
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-05 10:56:07 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-05 10:56:07 +0100
commitf0425af6cd4c7b6cd2dc0851584657e13af52c74 (patch)
treed8fe24393066849d9fc04ec91bfde4df40f7ec28 /pkgs/applications/science/misc/root/5.nix
parent83481b87082efe630b6bcd3c5089f488d90be51f (diff)
downloadnixpkgs-f0425af6cd4c7b6cd2dc0851584657e13af52c74.tar
nixpkgs-f0425af6cd4c7b6cd2dc0851584657e13af52c74.tar.gz
nixpkgs-f0425af6cd4c7b6cd2dc0851584657e13af52c74.tar.bz2
nixpkgs-f0425af6cd4c7b6cd2dc0851584657e13af52c74.tar.lz
nixpkgs-f0425af6cd4c7b6cd2dc0851584657e13af52c74.tar.xz
nixpkgs-f0425af6cd4c7b6cd2dc0851584657e13af52c74.tar.zst
nixpkgs-f0425af6cd4c7b6cd2dc0851584657e13af52c74.zip
root5: migrate to python3
Diffstat (limited to 'pkgs/applications/science/misc/root/5.nix')
-rw-r--r--pkgs/applications/science/misc/root/5.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/science/misc/root/5.nix b/pkgs/applications/science/misc/root/5.nix
index 14a7d33af78..ef7037eea3a 100644
--- a/pkgs/applications/science/misc/root/5.nix
+++ b/pkgs/applications/science/misc/root/5.nix
@@ -5,7 +5,7 @@
 , cmake
 , pcre
 , pkg-config
-, python2
+, python3
 , libX11
 , libXpm
 , libXft
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
   };
 
   nativeBuildInputs = [ cmake pkg-config ];
-  buildInputs = [ pcre python2 zlib libxml2 lz4 xz gsl xxHash libxcrypt ]
+  buildInputs = [ pcre python3 zlib libxml2 lz4 xz gsl xxHash libxcrypt ]
     ++ lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext libGLU libGL ]
     ++ lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL ]
   ;
@@ -59,6 +59,11 @@ stdenv.mkDerivation rec {
       url = "https://github.com/root-project/root/commit/3c243b18768d3c3501faf3ca4e4acfc071021350.diff";
       sha256 = "1hjmgnp4zx6im8ps78673x0rrhmfyy1nffhgxjlfl1r2z8cq210z";
     })
+    (fetchpatch {
+      name = "root5-python37-fix.patch";
+      url = "https://github.com/root-project/root/commit/c75458024082de0cc35b45505c652b8460a9e71b.patch";
+      sha256 = "sha256-A5zEjQE9OGPFp/L1HUs4NIdxQMRiwbwCRNWOLN2ENrM=";
+    })
   ];
 
   preConfigure = ''