aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/libfive
diff options
context:
space:
mode:
authorChris Hodapp <hodapp87@gmail.com>2018-06-21 16:58:34 -0400
committerChris Hodapp <hodapp87@gmail.com>2018-07-02 16:24:30 -0400
commitde64c6f296ea6f89b29e59dadc03b13824ad2d26 (patch)
tree08c13516439744335b9ba5dcb6252f94eb4f6fff /pkgs/development/libraries/libfive
parenta260b3d681164bedaeb90fd578390147799d638c (diff)
libfive: init at 2018-07-01
Diffstat (limited to 'pkgs/development/libraries/libfive')
-rw-r--r--pkgs/development/libraries/libfive/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libfive/default.nix b/pkgs/development/libraries/libfive/default.nix
new file mode 100644
index 000000000000..2c3085fc384f
--- /dev/null
+++ b/pkgs/development/libraries/libfive/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchFromGitHub, cmake, ninja, pkgconfig, eigen3_3,
+zlib, libpng, boost, qt5, guile
+}:
+
+stdenv.mkDerivation rec {
+ name = "libfive-${version}";
+ version = "2018-07-01";
+
+ src = fetchFromGitHub {
+ owner = "libfive";
+ repo = "libfive";
+ rev = "0f517dde9521d751310a22f85ee69b2c84690267";
+ sha256 = "0bfxysf5f4ripgcv546il8wnw5p0d4s75kdjlwvj32549537hlz0";
+ };
+ nativeBuildInputs = [ cmake ninja pkgconfig ];
+ buildInputs = [ eigen3_3 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;
+ };
+}