lol

Merge pull request #25570 from edef1c/solvespace-2.3

solvespace: 2.0 -> 2.3

authored by

Austin Seipp and committed by
GitHub
1daa8adf 1e1ef8e8

+30 -26
+1
lib/maintainers.nix
··· 152 152 e-user = "Alexander Kahl <nixos@sodosopa.io>"; 153 153 ebzzry = "Rommel Martinez <ebzzry@gmail.com>"; 154 154 edanaher = "Evan Danaher <nixos@edanaher.net>"; 155 + edef = "edef <edef@edef.eu>"; 155 156 ederoyd46 = "Matthew Brown <matt@ederoyd.co.uk>"; 156 157 eduarrrd = "Eduard Bachmakov <e.bachmakov@gmail.com>"; 157 158 edwtjo = "Edward Tjörnhammar <ed@cflags.cc>";
+29 -26
pkgs/applications/graphics/solvespace/default.nix
··· 1 - { stdenv, fetchgit, autoreconfHook, fltk13 2 - , libjpeg, libpng, mesa, pkgconfig }: 3 - 4 - stdenv.mkDerivation { 5 - name = "solvespace-2.0"; 1 + { stdenv, fetchgit, cmake, pkgconfig, zlib, libpng, cairo, freetype 2 + , json_c, fontconfig, gtkmm2, pangomm, glew, mesa_glu, xlibs, pcre 3 + }: 4 + stdenv.mkDerivation rec { 5 + name = "solvespace-2.3-20170416"; 6 + rev = "b1d87bf284b32e875c8edba592113e691ea10bcd"; 6 7 src = fetchgit { 7 - url = "https://github.com/jwesthues/solvespace.git"; 8 - sha256 = "0m6zlx1kiqxkm6szdsnywwr6spnb7xjg6vqsq30nrr44cx37w861"; 9 - rev = "e587d0e"; 8 + url = https://github.com/solvespace/solvespace; 9 + inherit rev; 10 + sha256 = "160qam04pfrwkh9qskfmjkj01wrjwhl09xi6jjxi009yqg3cff9l"; 11 + fetchSubmodules = true; 10 12 }; 11 13 12 - # Fixup build after glibc-2.25. 13 - postPatch = '' 14 - sed 's/\<CHAR_WIDTH\>/CHARWIDTH/g' \ 15 - -i src/{fltk/fltkmain.cpp,glhelper.cpp,textwin.cpp,toolbar.cpp,ui.h} 16 - ''; 17 - 18 - # e587d0e fails with undefined reference errors if make is called 19 - # twice. Ugly workaround: Build while installing. 20 - dontBuild = true; 21 - enableParallelBuilding = false; 22 - 23 14 buildInputs = [ 24 - autoreconfHook 25 - fltk13 26 - libjpeg 27 - libpng 28 - mesa 29 - pkgconfig 15 + cmake pkgconfig zlib libpng cairo freetype 16 + json_c fontconfig gtkmm2 pangomm glew mesa_glu 17 + xlibs.libpthreadstubs xlibs.libXdmcp pcre 30 18 ]; 19 + enableParallelBuilding = true; 20 + 21 + preConfigure = '' 22 + patch CMakeLists.txt <<EOF 23 + @@ -20,9 +20,9 @@ 24 + # NOTE TO PACKAGERS: The embedded git commit hash is critical for rapid bug triage when the builds 25 + # can come from a variety of sources. If you are mirroring the sources or otherwise build when 26 + # the .git directory is not present, please comment the following line: 27 + -include(GetGitCommitHash) 28 + +# include(GetGitCommitHash) 29 + # and instead uncomment the following, adding the complete git hash of the checkout you are using: 30 + -# set(GIT_COMMIT_HASH 0000000000000000000000000000000000000000) 31 + +set(GIT_COMMIT_HASH $rev) 32 + EOF 33 + ''; 31 34 32 35 meta = { 33 36 description = "A parametric 3d CAD program"; 34 37 license = stdenv.lib.licenses.gpl3; 35 - maintainers = with stdenv.lib.maintainers; [ the-kenny ]; 38 + maintainers = with stdenv.lib.maintainers; [ edef ]; 36 39 platforms = stdenv.lib.platforms.linux; 37 40 homepage = http://solvespace.com; 38 41 };