2016-01-17 23:04:40 +00:00
|
|
|
{ stdenv, fetchgit, autoreconfHook, fltk13
|
|
|
|
, libjpeg, libpng, mesa, pkgconfig }:
|
2014-09-15 15:27:14 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "solvespace-2.0";
|
|
|
|
src = fetchgit {
|
2015-08-16 18:09:27 +01:00
|
|
|
url = "https://github.com/jwesthues/solvespace.git";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "0m6zlx1kiqxkm6szdsnywwr6spnb7xjg6vqsq30nrr44cx37w861";
|
2014-09-15 15:27:14 +01:00
|
|
|
rev = "e587d0e";
|
|
|
|
};
|
|
|
|
|
2017-02-22 15:45:08 +00:00
|
|
|
# Fixup build after glibc-2.25.
|
|
|
|
postPatch = ''
|
|
|
|
sed 's/\<CHAR_WIDTH\>/CHARWIDTH/g' \
|
|
|
|
-i src/{fltk/fltkmain.cpp,glhelper.cpp,textwin.cpp,toolbar.cpp,ui.h}
|
|
|
|
'';
|
|
|
|
|
2014-09-15 15:27:14 +01:00
|
|
|
# e587d0e fails with undefined reference errors if make is called
|
|
|
|
# twice. Ugly workaround: Build while installing.
|
|
|
|
dontBuild = true;
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2016-01-17 23:04:40 +00:00
|
|
|
buildInputs = [
|
|
|
|
autoreconfHook
|
2014-09-15 15:27:14 +01:00
|
|
|
fltk13
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
mesa
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "A parametric 3d CAD program";
|
2014-09-15 15:27:14 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
homepage = http://solvespace.com;
|
|
|
|
};
|
|
|
|
}
|