aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/libfive
diff options
context:
space:
mode:
authorKovacsics Robert <rmk35@cam.ac.uk>2020-03-29 21:30:06 +0100
committerKovacsics Robert <rmk35@cam.ac.uk>2020-05-08 17:35:56 +0100
commit1e463bd6024d9f6c34d0ff423d626991a01a17de (patch)
tree04559a1c33c72b6e9b0f4658b10d7feab2851b59 /pkgs/development/libraries/libfive
parent05bcfa18202bd8d23446bbe278c779a5728f6e0f (diff)
libfive: 2018-07-01 -> 2020-02-15
Use proper Qt bindings (#65399). Note, current version didn't work for me, new version does. The libfive library is licensed under MPL 2.0, while the libfive-guile and libfive-studio are under GPL 2+ Superseeds #66128
Diffstat (limited to 'pkgs/development/libraries/libfive')
-rw-r--r--pkgs/development/libraries/libfive/default.nix41
1 files changed, 26 insertions, 15 deletions
diff --git a/pkgs/development/libraries/libfive/default.nix b/pkgs/development/libraries/libfive/default.nix
index fa275c0d7805..2670f94fbc2f 100644
--- a/pkgs/development/libraries/libfive/default.nix
+++ b/pkgs/development/libraries/libfive/default.nix
@@ -1,30 +1,41 @@
-{ stdenv, fetchFromGitHub, cmake, ninja, pkgconfig, eigen,
-zlib, libpng, boost, qt5, guile
+{ lib
+, mkDerivation
+, wrapQtAppsHook
+, fetchFromGitHub
+, cmake
+, ninja
+, pkgconfig
+, eigen
+, zlib
+, libpng
+, boost
+, guile
}:
-stdenv.mkDerivation {
- pname = "libfive";
- version = "2018-07-01";
+mkDerivation {
+ pname = "libfive-unstable";
+ version = "2020-02-15";
src = fetchFromGitHub {
- owner = "libfive";
- repo = "libfive";
- rev = "0f517dde9521d751310a22f85ee69b2c84690267";
- sha256 = "0bfxysf5f4ripgcv546il8wnw5p0d4s75kdjlwvj32549537hlz0";
+ owner = "libfive";
+ repo = "libfive";
+ rev = "5b7717a25064478cd6bdb190683566eaf4c7afdd";
+ sha256 = "102zw2n3vzv84i323is4qrwwqqha8v1cniw54ss8f4bq6dmic0bg";
};
- nativeBuildInputs = [ cmake ninja pkgconfig ];
- buildInputs = [ eigen zlib libpng boost qt5.qtimageformats guile ];
+
+ nativeBuildInputs = [ wrapQtAppsHook cmake ninja pkgconfig ];
+ buildInputs = [ eigen zlib libpng boost 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; {
+ meta = with 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;
+ maintainers = with maintainers; [ hodapp kovirobi ];
+ license = with licenses; [ mpl20 gpl2Plus ];
+ platforms = with platforms; linux ++ darwin;
};
}