summary refs log tree commit diff
path: root/pkgs/applications/graphics/freecad
diff options
context:
space:
mode:
authorPetr Rockai <me@mornfall.net>2014-02-15 10:23:56 +0100
committerPetr Rockai <me@mornfall.net>2014-02-15 10:27:39 +0100
commitd2758ce017c569d0146a5aa5e1ebf4dacb5292ee (patch)
tree798603bd4340260db2d4b2ad13740ac8ef57c489 /pkgs/applications/graphics/freecad
parenta03a0337e9d9ec5f554f75769054c71c1fcf82d2 (diff)
downloadnixpkgs-d2758ce017c569d0146a5aa5e1ebf4dacb5292ee.tar
nixpkgs-d2758ce017c569d0146a5aa5e1ebf4dacb5292ee.tar.gz
nixpkgs-d2758ce017c569d0146a5aa5e1ebf4dacb5292ee.tar.bz2
nixpkgs-d2758ce017c569d0146a5aa5e1ebf4dacb5292ee.tar.lz
nixpkgs-d2758ce017c569d0146a5aa5e1ebf4dacb5292ee.tar.xz
nixpkgs-d2758ce017c569d0146a5aa5e1ebf4dacb5292ee.tar.zst
nixpkgs-d2758ce017c569d0146a5aa5e1ebf4dacb5292ee.zip
freecad: Fix build with current cmake.
Diffstat (limited to 'pkgs/applications/graphics/freecad')
-rw-r--r--pkgs/applications/graphics/freecad/cmake.patch12
-rw-r--r--pkgs/applications/graphics/freecad/default.nix2
2 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/freecad/cmake.patch b/pkgs/applications/graphics/freecad/cmake.patch
new file mode 100644
index 00000000000..e54e16da977
--- /dev/null
+++ b/pkgs/applications/graphics/freecad/cmake.patch
@@ -0,0 +1,12 @@
+diff -ru freecad-0.13.1830.orig/CMakeLists.txt freecad-0.13.1830/CMakeLists.txt
+--- freecad-0.13.1830.orig/CMakeLists.txt       2013-02-02 18:09:17.000000000 +0100
++++ freecad-0.13.1830/CMakeLists.txt    2014-02-15 10:16:00.939725500 +0100
+@@ -321,7 +321,7 @@
+         foreach(it ${moc_files})
+             get_filename_component(it ${it} ABSOLUTE)
+             QT4_MAKE_OUTPUT_FILE(${it} moc_ cpp outfile)
+-            QT4_CREATE_MOC_COMMAND(${it} ${outfile} "${moc_flags}" "${moc_options}")
++            QT4_CREATE_MOC_COMMAND(${it} ${outfile} "${moc_flags}" "${moc_options}" "")
+             set(${outfiles} ${${outfiles}} ${outfile})
+             add_file_dependencies(${it} ${outfile})
+         endforeach(it)
diff --git a/pkgs/applications/graphics/freecad/default.nix b/pkgs/applications/graphics/freecad/default.nix
index 37265c954e8..770a7ee8212 100644
--- a/pkgs/applications/graphics/freecad/default.nix
+++ b/pkgs/applications/graphics/freecad/default.nix
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
       --set COIN_GL_NO_CURRENT_CONTEXT_CHECK 1
   '';
 
-  patches = [ ./pythonpath.patch ];
+  patches = [ ./pythonpath.patch ./cmake.patch ];
 
   meta = {
     homepage = http://free-cad.sourceforge.net/;