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