nixpkgs/pkgs/development/libraries/libfive/default.nix

31 lines
904 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, ninja, pkgconfig, eigen,
2018-06-21 21:58:34 +01:00
zlib, libpng, boost, qt5, guile
}:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "libfive";
2018-06-21 21:58:34 +01:00
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 ];
2018-06-21 21:58:34 +01:00
# Link "Studio" binary to "libfive-studio" to be more obvious:
postFixup = ''
ln -s "$out/bin/Studio" "$out/bin/libfive-studio"
'';
2018-06-21 21:58:34 +01:00
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;
};
}