nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, mkDerivation
3, wrapQtAppsHook
4, fetchFromGitHub
5, cmake
6, ninja
7, pkgconfig
8, eigen
9, zlib
10, libpng
11, boost
12, guile
13}:
14
15mkDerivation {
16 pname = "libfive-unstable";
17 version = "2020-02-15";
18
19 src = fetchFromGitHub {
20 owner = "libfive";
21 repo = "libfive";
22 rev = "5b7717a25064478cd6bdb190683566eaf4c7afdd";
23 sha256 = "102zw2n3vzv84i323is4qrwwqqha8v1cniw54ss8f4bq6dmic0bg";
24 };
25
26 nativeBuildInputs = [ wrapQtAppsHook cmake ninja pkgconfig ];
27 buildInputs = [ eigen zlib libpng boost guile ];
28
29 # Link "Studio" binary to "libfive-studio" to be more obvious:
30 postFixup = ''
31 ln -s "$out/bin/Studio" "$out/bin/libfive-studio"
32 '';
33
34 meta = with lib; {
35 description = "Infrastructure for solid modeling with F-Reps in C, C++, and Guile";
36 homepage = "https://libfive.com/";
37 maintainers = with maintainers; [ hodapp kovirobi ];
38 license = with licenses; [ mpl20 gpl2Plus ];
39 platforms = with platforms; linux ++ darwin;
40 };
41}