nixpkgs/pkgs/applications/graphics/f3d/default.nix

28 lines
733 B
Nix
Raw Normal View History

2021-11-20 19:46:22 +01:00
{ lib, stdenv, fetchFromGitHub, cmake, vtk_9, libX11, libGL, Cocoa, OpenGL }:
2020-09-02 00:08:29 +02:00
stdenv.mkDerivation rec {
pname = "f3d";
2021-11-20 19:46:22 +01:00
version = "1.1.1";
2020-09-02 00:08:29 +02:00
2021-11-20 19:46:22 +01:00
src = fetchFromGitHub {
owner = "f3d-app";
2020-09-02 00:08:29 +02:00
repo = "f3d";
rev = "v${version}";
2021-11-20 19:46:22 +01:00
sha256 = "sha256-ToFP2Q+Oi+MEU9FEe5CNp0pD0bQUBQh34B9guajnqgI=";
2020-09-02 00:08:29 +02:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ vtk_9 ]
2021-01-15 14:21:58 +01:00
++ lib.optionals stdenv.isLinux [ libGL libX11 ]
++ lib.optionals stdenv.isDarwin [ Cocoa OpenGL ];
2020-09-02 00:08:29 +02:00
meta = with lib; {
2020-09-02 00:08:29 +02: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;
};
}