Skip to content

Commit

Permalink
Merge pull request #109 from veprbl/pr/geant4_11_1_3
Browse files Browse the repository at this point in the history
geant4: bump to 11.1.3
  • Loading branch information
veprbl authored Dec 7, 2023
2 parents 94596c6 + 9cb7e4c commit 617f647
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 22 additions & 1 deletion overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ final: prev: with final; {

athena = callPackage pkgs/athena {};

# geant4 requires at least version 2.4.6.0
clhep = prev.clhep.overrideAttrs (old:
final.lib.optionalAttrs (final.lib.versionOlder prev.clhep.version "2.4.7.1") rec {
version = "2.4.7.1";

src = fetchurl {
url = "https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-${version}.tgz";
hash = "sha256-HIMEp3cqxrmRlfEwA3jG4930rQfIXWSgRQVlKruKVfk=";
};
}
);

epic = callPackage pkgs/epic { inherit epic-src; };

edm4eic = callPackage pkgs/edm4eic { inherit edm4eic-src; };
Expand Down Expand Up @@ -55,7 +67,16 @@ final: prev: with final; {

geant4 = (prev.geant4.override {
enableQt = true;
}).overrideAttrs (prev: {
}).overrideAttrs (prev: rec {
version = "11.1.3";
src = fetchurl {
url = "https://cern.ch/geant4-data/releases/geant4-v${version}.tar.gz";
hash = "sha256-TF++pnidjWGe2sygYx1rUhGmDhv5l0w9P6ue+eImkvU=";
};
postPatch = ''
substituteInPlace source/externals/ptl/cmake/Modules/PTLPackageConfigHelpers.cmake \
--replace '${"$"}{prefix}/${"$"}{PTL_INSTALL_' '${"$"}{PTL_INSTALL_'
'';
cmakeFlags = prev.cmakeFlags ++ [
"-DGEANT4_BUILD_TLS_MODEL=global-dynamic"
];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/fun4all/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ let
hash = "sha256-7Nrb+EaAevi6oHHzgQT7DcwkhHyEdc2DlzAuKu+o9m8=";
};

postPatch = (prev.postPatch or "") + ''
postPatch = (builtins.replaceStrings ["substituteInPlace source/externals/ptl/cmake/Modules/PTLPackageConfigHelpers.cmake"] ["echo"] prev.postPatch or "") + ''
substituteInPlace cmake/Modules/FindXQuartzGL.cmake \
--replace "NO_DEFAULT_PATH" ""
Expand Down

0 comments on commit 617f647

Please sign in to comment.