freecad: Allow opening .dwg files

Since version 0.19, freecad can open .dwg files through libredwg. See
https://wiki.freecadweb.org/FreeCAD_and_DWG_Import#FreeCAD_v0.19_and_LibreDWG.

Before this commit, freecad could open .dwg files only if libredwg was
independently installed. This is not how programs should work in Nix.
Therefore, we explicitly depend on libredwg and hardcode full path to
dwg2dxf.
This commit is contained in:
Michal Sojka 2021-09-13 12:34:05 +02:00
parent f6e9e908cc
commit 5f191ca827

View File

@ -15,6 +15,7 @@
, libGLU
, libXmu
, libf2c
, libredwg
, libspnav
, matplotlib
, medfile
@ -131,6 +132,7 @@ mkDerivation rec {
qtWrapperArgs = [
"--set COIN_GL_NO_CURRENT_CONTEXT_CHECK 1"
"--prefix PATH : ${libredwg}/bin"
];
postFixup = ''