2020-05-15 21:57:56 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-05-15 21:57:56 +00:00
|
|
|
, eigen
|
|
|
|
, zlib
|
|
|
|
, libpng
|
|
|
|
, boost
|
|
|
|
, guile
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
mkDerivation {
|
|
|
|
pname = "libfive-unstable";
|
|
|
|
version = "2020-02-15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-05-15 21:57:56 +00:00
|
|
|
owner = "libfive";
|
|
|
|
repo = "libfive";
|
|
|
|
rev = "5b7717a25064478cd6bdb190683566eaf4c7afdd";
|
|
|
|
sha256 = "102zw2n3vzv84i323is4qrwwqqha8v1cniw54ss8f4bq6dmic0bg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ wrapQtAppsHook cmake ninja pkg-config ];
|
2020-05-15 21:57:56 +00:00
|
|
|
buildInputs = [ eigen zlib libpng boost guile ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Link "Studio" binary to "libfive-studio" to be more obvious:
|
|
|
|
postFixup = ''
|
|
|
|
ln -s "$out/bin/Studio" "$out/bin/libfive-studio"
|
|
|
|
'';
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Infrastructure for solid modeling with F-Reps in C, C++, and Guile";
|
|
|
|
homepage = "https://libfive.com/";
|
2020-05-15 21:57:56 +00:00
|
|
|
maintainers = with maintainers; [ hodapp kovirobi ];
|
|
|
|
license = with licenses; [ mpl20 gpl2Plus ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|