2017-05-07 01:16:57 +02:00
|
|
|
{ stdenv, fetchgit, cmake, pkgconfig, zlib, libpng, cairo, freetype
|
2018-03-13 11:16:03 +01:00
|
|
|
, json_c, fontconfig, gtkmm3, pangomm, glew, libGLU, xorg, pcre
|
2017-12-09 17:31:56 +01:00
|
|
|
, wrapGAppsHook
|
2017-05-07 01:16:57 +02:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-01 10:35:50 +02:00
|
|
|
name = "solvespace-2.3-20190501";
|
|
|
|
rev = "e7b75f19c34c923780db776592b47152650d8f22";
|
2014-09-15 16:27:14 +02:00
|
|
|
src = fetchgit {
|
2017-05-07 01:16:57 +02:00
|
|
|
url = https://github.com/solvespace/solvespace;
|
|
|
|
inherit rev;
|
2019-05-01 10:35:50 +02:00
|
|
|
sha256 = "07k4mbzxf0dmzwdhjx5nc09y7rn1schkaypsw9kz0l7ppylprpp2";
|
2017-05-07 01:16:57 +02:00
|
|
|
fetchSubmodules = true;
|
2014-09-15 16:27:14 +02:00
|
|
|
};
|
|
|
|
|
2017-12-09 17:31:56 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig cmake wrapGAppsHook
|
|
|
|
];
|
2016-01-18 00:04:40 +01:00
|
|
|
buildInputs = [
|
2017-12-09 17:31:56 +01:00
|
|
|
zlib libpng cairo freetype
|
2018-02-24 13:59:47 +01:00
|
|
|
json_c fontconfig gtkmm3 pangomm glew libGLU
|
2018-03-13 11:16:03 +01:00
|
|
|
xorg.libpthreadstubs xorg.libXdmcp pcre
|
2014-09-15 16:27:14 +02:00
|
|
|
];
|
2017-05-07 01:16:57 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-05-01 10:35:50 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2017-07-17 11:24:10 +02:00
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace $out/share/applications/solvespace.desktop \
|
2017-10-10 12:00:36 +02:00
|
|
|
--replace /usr/bin/ $out/bin/
|
2017-07-17 11:24:10 +02:00
|
|
|
'';
|
|
|
|
|
2017-12-09 17:31:56 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "A parametric 3d CAD program";
|
2017-12-09 17:31:56 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.edef ];
|
|
|
|
platforms = platforms.linux;
|
2014-09-15 16:27:14 +02:00
|
|
|
homepage = http://solvespace.com;
|
|
|
|
};
|
|
|
|
}
|