1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 02:46:28 +00:00
nixpkgs/pkgs/applications/graphics/solvespace/default.nix
2017-02-22 16:45:08 +01:00

40 lines
1,003 B
Nix

{ stdenv, fetchgit, autoreconfHook, fltk13
, libjpeg, libpng, mesa, pkgconfig }:
stdenv.mkDerivation {
name = "solvespace-2.0";
src = fetchgit {
url = "https://github.com/jwesthues/solvespace.git";
sha256 = "0m6zlx1kiqxkm6szdsnywwr6spnb7xjg6vqsq30nrr44cx37w861";
rev = "e587d0e";
};
# 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 = [
autoreconfHook
fltk13
libjpeg
libpng
mesa
pkgconfig
];
meta = {
description = "A parametric 3d CAD program";
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
platforms = stdenv.lib.platforms.linux;
homepage = http://solvespace.com;
};
}