diff options
author | Roger Mason <rmason@mun.ca> | 2014-01-13 17:13:54 -0330 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2014-01-20 18:11:09 +0100 |
commit | e9928a1f25e30deaa9e88471e9f09d45ccea0fe4 (patch) | |
tree | 2f9f89f4183c52dcdd60bc9a2c83aeb0fcb0830f /pkgs/applications/science | |
parent | 3d1f6e3a7544dd0a8ca76f6706b85014791bac43 (diff) | |
download | nixlib-e9928a1f25e30deaa9e88471e9f09d45ccea0fe4.tar nixlib-e9928a1f25e30deaa9e88471e9f09d45ccea0fe4.tar.gz nixlib-e9928a1f25e30deaa9e88471e9f09d45ccea0fe4.tar.bz2 nixlib-e9928a1f25e30deaa9e88471e9f09d45ccea0fe4.tar.lz nixlib-e9928a1f25e30deaa9e88471e9f09d45ccea0fe4.tar.xz nixlib-e9928a1f25e30deaa9e88471e9f09d45ccea0fe4.tar.zst nixlib-e9928a1f25e30deaa9e88471e9f09d45ccea0fe4.zip |
Add CERN's 'root' Application Framework.
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/physics/root/cmake.patch | 11 | ||||
-rw-r--r-- | pkgs/applications/science/physics/root/default.nix | 24 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/science/physics/root/cmake.patch b/pkgs/applications/science/physics/root/cmake.patch new file mode 100644 index 000000000000..b6efd7444fe9 --- /dev/null +++ b/pkgs/applications/science/physics/root/cmake.patch @@ -0,0 +1,11 @@ +--- cmake/modules/RootBuildOptions.cmake 1969-12-31 20:30:01.000000000 -0330 ++++ cmake/modules/RootBuildOptions.cmake 2014-01-10 14:09:29.424937408 -0330 +@@ -149,7 +149,7 @@ + + #---General Build options---------------------------------------------------------------------- + # use, i.e. don't skip the full RPATH for the build tree +-set(CMAKE_SKIP_BUILD_RPATH FALSE) ++set(CMAKE_SKIP_BUILD_RPATH TRUE) + # when building, don't use the install RPATH already (but later on when installing) + set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) + # add the automatically determined parts of the RPATH diff --git a/pkgs/applications/science/physics/root/default.nix b/pkgs/applications/science/physics/root/default.nix new file mode 100644 index 000000000000..f07f7eae0a7d --- /dev/null +++ b/pkgs/applications/science/physics/root/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, cmake, mesa, libX11, gfortran, libXpm, libXft, libXext, zlib }: + +stdenv.mkDerivation rec { + name = "root_v5.34.14"; + + src = fetchurl { + url = "ftp://root.cern.ch/root/${name}.source.tar.gz"; + sha256 = "d5347ba1b614eb083cf08050b784d66a93c125ed89938708da1adb33323dee2b"; + }; + + buildInputs = [ cmake gfortran mesa libX11 libXpm libXft libXext zlib ]; + + # CMAKE_INSTALL_RPATH_USE_LINK_PATH is set to FALSE in + # <rootsrc>/cmake/modules/RootBuildOptions.cmake. + # This patch sets it to TRUE. + patches = [ ./cmake.patch ]; + patchFlags = "-p0"; + + meta = { + description = "A data analysis framework"; + #maintainers = [ stdenv.lib.maintainers.urkud ]; + platforms = stdenv.lib.platforms.mesaPlatforms; + }; +} |