solvespace: 2.0 -> 2.3
This commit is contained in:
parent
dbc97ba2d7
commit
87c1e48223
@ -1,38 +1,41 @@
|
|||||||
{ stdenv, fetchgit, autoreconfHook, fltk13
|
{ stdenv, fetchgit, cmake, pkgconfig, zlib, libpng, cairo, freetype
|
||||||
, libjpeg, libpng, mesa, pkgconfig }:
|
, json_c, fontconfig, gtkmm2, pangomm, glew, mesa_glu, xlibs, pcre
|
||||||
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "solvespace-2.0";
|
name = "solvespace-2.3-20170416";
|
||||||
|
rev = "b1d87bf284b32e875c8edba592113e691ea10bcd";
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/jwesthues/solvespace.git";
|
url = https://github.com/solvespace/solvespace;
|
||||||
sha256 = "0m6zlx1kiqxkm6szdsnywwr6spnb7xjg6vqsq30nrr44cx37w861";
|
inherit rev;
|
||||||
rev = "e587d0e";
|
sha256 = "160qam04pfrwkh9qskfmjkj01wrjwhl09xi6jjxi009yqg3cff9l";
|
||||||
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fixup build after glibc-2.25.
|
|
||||||
postPatch = ''
|
|
||||||
sed 's/\<CHAR_WIDTH\>/CHARWIDTH/g' \
|
|
||||||
-i src/{fltk/fltkmain.cpp,glhelper.cpp,textwin.cpp,toolbar.cpp,ui.h}
|
|
||||||
'';
|
|
||||||
|
|
||||||
# e587d0e fails with undefined reference errors if make is called
|
|
||||||
# twice. Ugly workaround: Build while installing.
|
|
||||||
dontBuild = true;
|
|
||||||
enableParallelBuilding = false;
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
autoreconfHook
|
cmake pkgconfig zlib libpng cairo freetype
|
||||||
fltk13
|
json_c fontconfig gtkmm2 pangomm glew mesa_glu
|
||||||
libjpeg
|
xlibs.libpthreadstubs xlibs.libXdmcp pcre
|
||||||
libpng
|
|
||||||
mesa
|
|
||||||
pkgconfig
|
|
||||||
];
|
];
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A parametric 3d CAD program";
|
description = "A parametric 3d CAD program";
|
||||||
license = stdenv.lib.licenses.gpl3;
|
license = stdenv.lib.licenses.gpl3;
|
||||||
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
maintainers = with stdenv.lib.maintainers; [ edef ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
homepage = http://solvespace.com;
|
homepage = http://solvespace.com;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user