Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96934 from bcdarwin/f3d
f3d: init at 1.0.1
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ stdenv, fetchFromGitLab, cmake, vtk_9, libX11, libGL, Cocoa, OpenGL }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "f3d"; | ||
version = "1.0.1"; | ||
|
||
src = fetchFromGitLab { | ||
domain = "gitlab.kitware.com"; | ||
owner = "f3d"; | ||
repo = "f3d"; | ||
rev = "v${version}"; | ||
sha256 = "0a6r0jspkhl735f6zmnhby1g4dlmjqd5izgsp5yfdcdhqj4j63mg"; | ||
}; | ||
|
||
nativeBuildInputs = [ cmake ]; | ||
|
||
buildInputs = [ vtk_9 ] | ||
++ stdenv.lib.optionals stdenv.isLinux [ libGL libX11 ] | ||
++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa OpenGL ]; | ||
|
||
meta = with stdenv.lib; { | ||
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters