summary refs log tree commit diff
path: root/pkgs/applications/graphics/solvespace/default.nix
blob: 67513bcf9230d85a1d33cbf5a72a33fc4453e15c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ stdenv, fetchgit,autoconf, automake, gcc, fltk13
, libjpeg, libpng, libtool, mesa, pkgconfig }:

stdenv.mkDerivation {
  name = "solvespace-2.0";
  src = fetchgit {
    url = "https://github.com/jwesthues/solvespace.git";
    sha256 = "0sakxkmj2f0k27f67wy1xz2skpnwzg15yqrf7av97pgc5s8xb3da";
    rev = "e587d0e";
  };

  # e587d0e fails with undefined reference errors if make is called
  # twice. Ugly workaround: Build while installing.
  dontBuild = true;
  enableParallelBuilding = false;

  buildInputs = [        
    autoconf
    automake
    gcc
    fltk13
    libjpeg
    libpng
    libtool
    mesa
    pkgconfig
    stdenv
  ];

  preConfigure = ''
    aclocal
    libtoolize
    
    autoreconf -i
    automake --add-missing
  '';

  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;
  };
}