From 5f191ca827afaa4487a4234c6fbd6138985506f3 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 13 Sep 2021 12:34:05 +0200 Subject: [PATCH] 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. --- pkgs/applications/graphics/freecad/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/graphics/freecad/default.nix b/pkgs/applications/graphics/freecad/default.nix index ac4050fc8c5b..ed2434fa5d07 100644 --- a/pkgs/applications/graphics/freecad/default.nix +++ b/pkgs/applications/graphics/freecad/default.nix @@ -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 = ''