at 18.09-beta 51 lines 1.7 kB view raw
1{ stdenv, fetchgit, cmake, pkgconfig, zlib, libpng, cairo, freetype 2, json_c, fontconfig, gtkmm3, pangomm, glew, libGLU, xorg, pcre 3, wrapGAppsHook 4}: 5stdenv.mkDerivation rec { 6 name = "solvespace-2.3-20170808"; 7 rev = "16540b1b2c540a4b44500ac02aaa4493bccfba7e"; 8 src = fetchgit { 9 url = https://github.com/solvespace/solvespace; 10 inherit rev; 11 sha256 = "1z10i21xf3yagd984lp1hwasnsizx2s3faq3wdzzjngrikr2zn70"; 12 fetchSubmodules = true; 13 }; 14 15 nativeBuildInputs = [ 16 pkgconfig cmake wrapGAppsHook 17 ]; 18 buildInputs = [ 19 zlib libpng cairo freetype 20 json_c fontconfig gtkmm3 pangomm glew libGLU 21 xorg.libpthreadstubs xorg.libXdmcp pcre 22 ]; 23 enableParallelBuilding = true; 24 25 preConfigure = '' 26 patch CMakeLists.txt <<EOF 27 @@ -20,9 +20,9 @@ 28 # NOTE TO PACKAGERS: The embedded git commit hash is critical for rapid bug triage when the builds 29 # can come from a variety of sources. If you are mirroring the sources or otherwise build when 30 # the .git directory is not present, please comment the following line: 31 -include(GetGitCommitHash) 32 +# include(GetGitCommitHash) 33 # and instead uncomment the following, adding the complete git hash of the checkout you are using: 34 -# set(GIT_COMMIT_HASH 0000000000000000000000000000000000000000) 35 +set(GIT_COMMIT_HASH $rev) 36 EOF 37 ''; 38 39 postInstall = '' 40 substituteInPlace $out/share/applications/solvespace.desktop \ 41 --replace /usr/bin/ $out/bin/ 42 ''; 43 44 meta = with stdenv.lib; { 45 description = "A parametric 3d CAD program"; 46 license = licenses.gpl3; 47 maintainers = [ maintainers.edef ]; 48 platforms = platforms.linux; 49 homepage = http://solvespace.com; 50 }; 51}