freecad: 1.0.1 -> 1.0.2 (#431206)

This commit is contained in:
Peder Bergebakken Sundt
2025-08-20 23:46:41 +02:00
committed by GitHub
+22 -15
View File
@@ -16,7 +16,6 @@
libspnav,
libXmu,
medfile,
mpi,
ninja,
ode,
opencascade-occt,
@@ -32,6 +31,8 @@
zlib,
qt6,
nix-update-script,
gmsh,
which,
}:
let
pythonDeps = with python3Packages; [
@@ -57,13 +58,13 @@ in
freecad-utils.makeCustomizable (
stdenv.mkDerivation (finalAttrs: {
pname = "freecad";
version = "1.0.1";
version = "1.0.2";
src = fetchFromGitHub {
owner = "FreeCAD";
repo = "FreeCAD";
tag = finalAttrs.version;
hash = "sha256-VFTNawXxu2ofjj2Frg4OfVhiMKFywBhm7lZunP85ZEQ=";
hash = "sha256-J//O/ABMFa3TFYwR0wc8d1UTA5iSFnEP2thOjuCN+uE=";
fetchSubmodules = true;
};
@@ -87,7 +88,6 @@ freecad-utils.makeCustomizable (
libGLU
libXmu
medfile
mpi
ode
vtk
xercesc
@@ -113,11 +113,6 @@ freecad-utils.makeCustomizable (
url = "https://github.com/FreeCAD/FreeCAD/commit/8e04c0a3dd9435df0c2dec813b17d02f7b723b19.patch?full_index=1";
hash = "sha256-H6WbJFTY5/IqEdoi5N+7D4A6pVAmZR4D+SqDglwS18c=";
})
# https://github.com/FreeCAD/FreeCAD/pull/22221
(fetchpatch {
url = "https://github.com/FreeCAD/FreeCAD/commit/3d2b7dc9c7ac898b30fe469b7cbd424ed1bca0a2.patch?full_index=1";
hash = "sha256-XCQdv/+dYdJ/ptA2VKrD63qYILyaP276ISMkmWLtT30=";
})
# Inform Coin to use EGL when on Wayland
# https://github.com/FreeCAD/FreeCAD/pull/21917
(fetchpatch {
@@ -126,6 +121,11 @@ freecad-utils.makeCustomizable (
})
];
postPatch = ''
substituteInPlace src/Mod/Fem/femmesh/gmshtools.py \
--replace-fail 'self.gmsh_bin = "gmsh"' 'self.gmsh_bin = "${lib.getExe gmsh}"'
'';
cmakeFlags = [
"-Wno-dev" # turns off warnings which otherwise makes it hard to see what is going on
"-DBUILD_DRAWING=ON"
@@ -152,12 +152,19 @@ freecad-utils.makeCustomizable (
dontWrapGApps = true;
qtWrapperArgs = [
"--set COIN_GL_NO_CURRENT_CONTEXT_CHECK 1"
"--prefix PATH : ${libredwg}/bin"
"--prefix PYTHONPATH : ${python3Packages.makePythonPath pythonDeps}"
"\${gappsWrapperArgs[@]}"
];
qtWrapperArgs =
let
binPath = lib.makeBinPath [
libredwg
which # for locating tools
];
in
[
"--set COIN_GL_NO_CURRENT_CONTEXT_CHECK 1"
"--prefix PATH : ${binPath}"
"--prefix PYTHONPATH : ${python3Packages.makePythonPath pythonDeps}"
"\${gappsWrapperArgs[@]}"
];
postFixup = ''
mv $out/share/doc $out