summary refs log tree commit diff
path: root/pkgs/development/libraries/libfive/default.nix
blob: fa275c0d7805932a2bb0015af90434ba4f836ab4 (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
{ stdenv, fetchFromGitHub, cmake, ninja, pkgconfig, eigen,
zlib, libpng, boost, qt5, guile
}:

stdenv.mkDerivation {
  pname = "libfive";
  version = "2018-07-01";

  src = fetchFromGitHub {
    owner  = "libfive";
    repo   = "libfive";
    rev    = "0f517dde9521d751310a22f85ee69b2c84690267";
    sha256 = "0bfxysf5f4ripgcv546il8wnw5p0d4s75kdjlwvj32549537hlz0";
  };
  nativeBuildInputs = [ cmake ninja pkgconfig ];
  buildInputs = [ eigen zlib libpng boost qt5.qtimageformats guile ];

  # Link "Studio" binary to "libfive-studio" to be more obvious:
  postFixup = ''
    ln -s "$out/bin/Studio" "$out/bin/libfive-studio"
  '';

  meta = with stdenv.lib; {
    description = "Infrastructure for solid modeling with F-Reps in C, C++, and Guile";
    homepage = "https://libfive.com/";
    maintainers = with maintainers; [ hodapp ];
    license = licenses.lgpl2;
    platforms = platforms.linux;
  };
}