nixpkgs/pkgs/applications/graphics/freecad/default.nix
Lluís Batlle i Rossell a76b0fb6fa Making freecad install; it still does not find all shared objects though.
Either eigen changed the hash of the tarball, or I did not commit its latest hash.
I add boost 1.46 apart, because 1.44 does not work easily for freecad.

svn path=/nixpkgs/trunk/; revision=26151
2011-03-04 09:48:24 +00:00

34 lines
986 B
Nix

{ fetchsvn, stdenv, cmake, coin3d, xercesc, ode, eigen, qt4, opencascade, gts,
boost, zlib,
python, swig, gfortran, soqt, libf2c }:
# It builds but fails to install
stdenv.mkDerivation rec {
name = "freecad-${version}";
version = "svn-${src.rev}";
src = fetchsvn {
url = https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk;
rev = "4184";
sha256 = "26bd8407ce38f070b81ef39145aed093eed3c200d165a605b8169162d66568ce";
};
buildInputs = [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost
zlib python swig gfortran soqt libf2c ];
enableParallelBuilding = true;
# They are used to boost 1.42, and we have newer boost that require
# this for freecad to build
NIX_CFLAGS_COMPILE = "-DBOOST_FILESYSTEM_VERSION=2";
patches = [ ./cmakeinstall.patch ];
meta = {
homepage = http://free-cad.sourceforge.net/;
license = [ "GPLv2+" "LGPLv2+" ];
description = "General purpose Open Source 3D CAD/MCAD/CAx/CAE/PLM modeler";
};
}