at 22.05-pre 50 lines 1.6 kB view raw
1{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, zlib, libpng, cairo, freetype 2, json_c, fontconfig, gtkmm3, pangomm, glew, libGLU, xorg, pcre, wrapGAppsHook 3}: 4stdenv.mkDerivation rec { 5 pname = "solvespace"; 6 version = "v3.0"; 7 src = fetchFromGitHub { 8 owner = pname; 9 repo = pname; 10 rev = version; 11 sha256 = "04aympdsjp37vp0p13mb8nwkc080hp9cdrjpyy5m1mhwkm8jm9k9"; 12 fetchSubmodules = true; 13 }; 14 15 nativeBuildInputs = [ 16 pkg-config 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 24 preConfigure = '' 25 patch CMakeLists.txt <<EOF 26 @@ -20,9 +20,9 @@ 27 # NOTE TO PACKAGERS: The embedded git commit hash is critical for rapid bug triage when the builds 28 # can come from a variety of sources. If you are mirroring the sources or otherwise build when 29 # the .git directory is not present, please comment the following line: 30 -include(GetGitCommitHash) 31 +# include(GetGitCommitHash) 32 # and instead uncomment the following, adding the complete git hash of the checkout you are using: 33 -# set(GIT_COMMIT_HASH 0000000000000000000000000000000000000000) 34 +set(GIT_COMMIT_HASH $version) 35 EOF 36 ''; 37 38 postInstall = '' 39 substituteInPlace $out/share/applications/solvespace.desktop \ 40 --replace /usr/bin/ $out/bin/ 41 ''; 42 43 meta = with lib; { 44 description = "A parametric 3d CAD program"; 45 license = licenses.gpl3Plus; 46 maintainers = [ maintainers.edef ]; 47 platforms = platforms.linux; 48 homepage = "http://solvespace.com"; 49 }; 50}