2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, cmake, vtk_9, libX11, libGL, Cocoa, OpenGL }:
|
2020-09-01 23:08:29 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "f3d";
|
2020-12-21 02:12:23 +00:00
|
|
|
version = "1.1.0";
|
2020-09-01 23:08:29 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.kitware.com";
|
|
|
|
owner = "f3d";
|
|
|
|
repo = "f3d";
|
|
|
|
rev = "v${version}";
|
2020-12-21 02:12:23 +00:00
|
|
|
sha256 = "0lj20k5qyw9z85k3wsp05f7dcv7v7asrnppi8i1jm32dzxjm4siw";
|
2020-09-01 23:08:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ vtk_9 ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ lib.optionals stdenv.isLinux [ libGL libX11 ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Cocoa OpenGL ];
|
2020-09-01 23:08:29 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-01 23:08:29 +01:00
|
|
|
description = "Fast and minimalist 3D viewer using VTK";
|
|
|
|
homepage = "https://kitware.github.io/F3D";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|