1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00
nixpkgs/pkgs/applications/graphics/solvespace/default.nix

49 lines
1.6 KiB
Nix
Raw Normal View History

2017-05-07 00:16:57 +01:00
{ stdenv, fetchgit, cmake, pkgconfig, zlib, libpng, cairo, freetype
, json_c, fontconfig, gtkmm3, pangomm, glew, mesa_glu, xlibs, pcre
2017-05-07 00:16:57 +01:00
}:
stdenv.mkDerivation rec {
name = "solvespace-2.3-20170808";
rev = "16540b1b2c540a4b44500ac02aaa4493bccfba7e";
src = fetchgit {
2017-05-07 00:16:57 +01:00
url = https://github.com/solvespace/solvespace;
inherit rev;
sha256 = "1z10i21xf3yagd984lp1hwasnsizx2s3faq3wdzzjngrikr2zn70";
2017-05-07 00:16:57 +01:00
fetchSubmodules = true;
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
cmake zlib libpng cairo freetype
json_c fontconfig gtkmm3 pangomm glew mesa_glu
2017-05-07 00:16:57 +01:00
xlibs.libpthreadstubs xlibs.libXdmcp pcre
];
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
'';
postInstall = ''
substituteInPlace $out/share/applications/solvespace.desktop \
--replace /usr/bin/ $out/bin/ \
'';
meta = {
2014-11-11 13:20:43 +00:00
description = "A parametric 3d CAD program";
license = stdenv.lib.licenses.gpl3;
2017-05-07 00:16:57 +01:00
maintainers = with stdenv.lib.maintainers; [ edef ];
platforms = stdenv.lib.platforms.linux;
homepage = http://solvespace.com;
};
}