mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
1e463bd602
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
42 lines
969 B
Nix
42 lines
969 B
Nix
{ lib
|
|
, mkDerivation
|
|
, wrapQtAppsHook
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, ninja
|
|
, pkgconfig
|
|
, eigen
|
|
, zlib
|
|
, libpng
|
|
, boost
|
|
, guile
|
|
}:
|
|
|
|
mkDerivation {
|
|
pname = "libfive-unstable";
|
|
version = "2020-02-15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libfive";
|
|
repo = "libfive";
|
|
rev = "5b7717a25064478cd6bdb190683566eaf4c7afdd";
|
|
sha256 = "102zw2n3vzv84i323is4qrwwqqha8v1cniw54ss8f4bq6dmic0bg";
|
|
};
|
|
|
|
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 lib; {
|
|
description = "Infrastructure for solid modeling with F-Reps in C, C++, and Guile";
|
|
homepage = "https://libfive.com/";
|
|
maintainers = with maintainers; [ hodapp kovirobi ];
|
|
license = with licenses; [ mpl20 gpl2Plus ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
};
|
|
}
|