Skip to content

Commit 0c8264c

Browse files
authored
geant4: silence failure to initialize GEANT4_DATA_DIR (#384883)
1 parent 39eaefb commit 0c8264c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/by-name/ge/geant4/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ stdenv.mkDerivation rec {
118118

119119
postFixup =
120120
''
121-
# Don't try to export invalid environment variables.
122-
sed -i 's/export G4\([A-Z]*\)DATA/#export G4\1DATA/' "$out"/bin/geant4.sh
121+
substituteInPlace "$out"/bin/geant4.sh \
122+
--replace-fail "export GEANT4_DATA_DIR" "# export GEANT4_DATA_DIR"
123123
''
124124
+ lib.optionalString enableQt ''
125125
wrapQtAppsHook

0 commit comments

Comments
 (0)