netgen: hardcoding libnggui path in tcl script

This commit is contained in:
qbisi
2025-03-08 06:06:13 +08:00
parent f344310e9a
commit a873869353
+3 -5
View File
@@ -78,6 +78,9 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace python/CMakeLists.txt \
--replace-fail ''\'''${CMAKE_INSTALL_PREFIX}/''${NG_INSTALL_DIR_PYTHON}' \
''\'''${CMAKE_INSTALL_PREFIX}/''${NG_INSTALL_DIR_PYTHON}:$ENV{PYTHONPATH}'
substituteInPlace ng/ng.tcl ng/onetcl.cpp \
--replace-fail "libnggui" "$out/lib/libnggui"
'';
nativeBuildInputs = [
@@ -121,11 +124,6 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "ENABLE_UNIT_TESTS" finalAttrs.finalPackage.doInstallCheck)
];
# Tcl script used by netgen need to be aware of environment NETGENDIR
postInstall = ''
wrapProgram "$out/bin/netgen" --set NETGENDIR "$out/bin"
'';
# mesh generation differs on x86_64 and aarch64 platform
# tests will fail on aarch64 platform
doInstallCheck = stdenv.hostPlatform.isx86_64;