2017-05-07 00:16:57 +01:00
|
|
|
{ stdenv, fetchgit, cmake, pkgconfig, zlib, libpng, cairo, freetype
|
|
|
|
, json_c, fontconfig, gtkmm2, pangomm, glew, mesa_glu, xlibs, pcre
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "solvespace-2.3-20170416";
|
|
|
|
rev = "b1d87bf284b32e875c8edba592113e691ea10bcd";
|
2014-09-15 15:27:14 +01:00
|
|
|
src = fetchgit {
|
2017-05-07 00:16:57 +01:00
|
|
|
url = https://github.com/solvespace/solvespace;
|
|
|
|
inherit rev;
|
|
|
|
sha256 = "160qam04pfrwkh9qskfmjkj01wrjwhl09xi6jjxi009yqg3cff9l";
|
|
|
|
fetchSubmodules = true;
|
2014-09-15 15:27:14 +01:00
|
|
|
};
|
|
|
|
|
2016-01-17 23:04:40 +00:00
|
|
|
buildInputs = [
|
2017-05-07 00:16:57 +01:00
|
|
|
cmake pkgconfig zlib libpng cairo freetype
|
|
|
|
json_c fontconfig gtkmm2 pangomm glew mesa_glu
|
|
|
|
xlibs.libpthreadstubs xlibs.libXdmcp pcre
|
2014-09-15 15:27:14 +01:00
|
|
|
];
|
2017-05-07 00:16:57 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patch CMakeLists.txt <<EOF
|
|
|
|
@@ -20,9 +20,9 @@
|
|
|
|
# NOTE TO PACKAGERS: The embedded git commit hash is critical for rapid bug triage when the builds
|
|
|
|
# can come from a variety of sources. If you are mirroring the sources or otherwise build when
|
|
|
|
# the .git directory is not present, please comment the following line:
|
|
|
|
-include(GetGitCommitHash)
|
|
|
|
+# include(GetGitCommitHash)
|
|
|
|
# and instead uncomment the following, adding the complete git hash of the checkout you are using:
|
|
|
|
-# set(GIT_COMMIT_HASH 0000000000000000000000000000000000000000)
|
|
|
|
+set(GIT_COMMIT_HASH $rev)
|
|
|
|
EOF
|
|
|
|
'';
|
2014-09-15 15:27:14 +01:00
|
|
|
|
|
|
|
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;
|
2017-05-07 00:16:57 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ edef ];
|
2014-09-15 15:27:14 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
homepage = http://solvespace.com;
|
|
|
|
};
|
|
|
|
}
|