nixpkgs/pkgs/applications/graphics/solvespace/default.nix

39 lines
1.0 KiB
Nix
Raw Normal View History

2017-05-06 16:16:57 -07:00
{ stdenv, fetchgit, cmake, pkgconfig, zlib, libpng, cairo, freetype
2018-03-13 03:16:03 -07:00
, json_c, fontconfig, gtkmm3, pangomm, glew, libGLU, xorg, pcre
2017-12-09 08:31:56 -08:00
, wrapGAppsHook
2017-05-06 16:16:57 -07:00
}:
stdenv.mkDerivation rec {
name = "solvespace-2.3-20190422";
rev = "fa6622903010eb82b07b16adf06d31d5ffcd6bb9";
src = fetchgit {
2017-05-06 16:16:57 -07:00
url = https://github.com/solvespace/solvespace;
inherit rev;
sha256 = "144w5l8cc5cpzqm6hjdp98a5k08whska1hmvwnz0c7glfji4z4dk";
2017-05-06 16:16:57 -07:00
fetchSubmodules = true;
};
2017-12-09 08:31:56 -08:00
nativeBuildInputs = [
pkgconfig cmake wrapGAppsHook
];
buildInputs = [
2017-12-09 08:31:56 -08:00
zlib libpng cairo freetype
json_c fontconfig gtkmm3 pangomm glew libGLU
2018-03-13 03:16:03 -07:00
xorg.libpthreadstubs xorg.libXdmcp pcre
];
2017-05-06 16:16:57 -07:00
enableParallelBuilding = true;
postInstall = ''
substituteInPlace $out/share/applications/solvespace.desktop \
--replace /usr/bin/ $out/bin/
'';
2017-12-09 08:31:56 -08:00
meta = with stdenv.lib; {
2014-11-11 05:20:43 -08:00
description = "A parametric 3d CAD program";
2017-12-09 08:31:56 -08:00
license = licenses.gpl3;
maintainers = [ maintainers.edef ];
platforms = platforms.linux;
homepage = http://solvespace.com;
};
}