openscad: enable spacenav support
This commit is contained in:
parent
ab336074fd
commit
9508fcff31
|
@ -25,6 +25,7 @@
|
||||||
, mkDerivation
|
, mkDerivation
|
||||||
, qtmacextras
|
, qtmacextras
|
||||||
, qmake
|
, qmake
|
||||||
|
, spacenavSupport ? stdenv.isLinux, libspnav
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
|
@ -46,9 +47,15 @@ mkDerivation rec {
|
||||||
qtbase qtmultimedia qscintilla
|
qtbase qtmultimedia qscintilla
|
||||||
] ++ lib.optionals stdenv.isLinux [ libGLU libGL ]
|
] ++ lib.optionals stdenv.isLinux [ libGLU libGL ]
|
||||||
++ lib.optional stdenv.isDarwin qtmacextras
|
++ lib.optional stdenv.isDarwin qtmacextras
|
||||||
|
++ lib.optional spacenavSupport libspnav
|
||||||
;
|
;
|
||||||
|
|
||||||
qmakeFlags = [ "VERSION=${version}" ];
|
qmakeFlags = [ "VERSION=${version}" ] ++
|
||||||
|
lib.optionals spacenavSupport [
|
||||||
|
"ENABLE_SPNAV=1"
|
||||||
|
"SPNAV_INCLUDEPATH=${libspnav}/include"
|
||||||
|
"SPNAV_LIBPATH=${libspnav}/lib"
|
||||||
|
];
|
||||||
|
|
||||||
# src/lexer.l:36:10: fatal error: parser.hxx: No such file or directory
|
# src/lexer.l:36:10: fatal error: parser.hxx: No such file or directory
|
||||||
enableParallelBuilding = false; # true by default due to qmake
|
enableParallelBuilding = false; # true by default due to qmake
|
||||||
|
|
Loading…
Reference in a new issue