2013-12-14 14:35:43 +04:00
|
|
|
{ stdenv, fetchurl, cmake, coin3d, xercesc, ode, eigen, qt4, opencascade, gts
|
|
|
|
, boost, zlib, python, swig, gfortran, soqt, libf2c , pyqt4, makeWrapper
|
|
|
|
, matplotlib, pycollada }:
|
2011-03-02 20:18:30 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "freecad-${version}";
|
2013-05-30 11:51:07 +04:00
|
|
|
version = "0.13.1830";
|
2011-03-02 20:18:30 +03:00
|
|
|
|
2013-05-30 11:51:07 +04:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/free-cad/${name}.tar.gz";
|
|
|
|
sha256 = "04rgww5y32asn4sx5j4wh79ggvb479pq56xfcfj6gkg44mid23jm";
|
2011-03-02 20:18:30 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost
|
2013-12-14 14:35:43 +04:00
|
|
|
zlib python swig gfortran soqt libf2c pyqt4 makeWrapper matplotlib
|
|
|
|
pycollada
|
|
|
|
];
|
2011-03-02 20:18:30 +03:00
|
|
|
|
2011-03-03 16:41:10 +03:00
|
|
|
enableParallelBuilding = true;
|
2011-03-02 20:18:30 +03:00
|
|
|
|
2011-03-06 01:27:55 +03:00
|
|
|
# This should work on both x86_64, and i686 linux
|
2011-03-04 12:48:33 +03:00
|
|
|
preBuild = ''
|
2011-03-06 01:27:55 +03:00
|
|
|
export NIX_LDFLAGS="-L${gfortran.gcc}/lib64 -L${gfortran.gcc}/lib $NIX_LDFLAGS";
|
2011-03-04 12:48:33 +03:00
|
|
|
'';
|
|
|
|
|
2011-03-06 01:27:51 +03:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/FreeCAD --prefix PYTHONPATH : $PYTHONPATH \
|
|
|
|
--set COIN_GL_NO_CURRENT_CONTEXT_CHECK 1
|
|
|
|
'';
|
|
|
|
|
2014-02-15 13:23:56 +04:00
|
|
|
patches = [ ./pythonpath.patch ./cmake.patch ];
|
2011-03-04 12:48:24 +03:00
|
|
|
|
2011-03-03 16:41:10 +03:00
|
|
|
meta = {
|
|
|
|
homepage = http://free-cad.sourceforge.net/;
|
|
|
|
license = [ "GPLv2+" "LGPLv2+" ];
|
|
|
|
description = "General purpose Open Source 3D CAD/MCAD/CAx/CAE/PLM modeler";
|
2011-03-04 12:48:33 +03:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2011-03-03 16:41:10 +03:00
|
|
|
};
|
2011-03-02 20:18:30 +03:00
|
|
|
}
|