depot/third_party/nixpkgs/pkgs/development/libraries/pangolin/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

54 lines
1.7 KiB
Nix

{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, doxygen, libGL, glew
, xorg, ffmpeg_4, libjpeg, libpng, libtiff, eigen
, Carbon ? null, Cocoa ? null
}:
stdenv.mkDerivation rec {
pname = "pangolin";
version = "0.9.1";
src = fetchFromGitHub {
owner = "stevenlovegrove";
repo = "Pangolin";
rev = "v${version}";
sha256 = "sha256-B5YuNcJZHjR3dlVs66rySi68j29O3iMtlQvCjTUZBeY=";
};
nativeBuildInputs = [ cmake pkg-config doxygen ];
buildInputs = [
libGL
glew
xorg.libX11
ffmpeg_4
libjpeg
libpng
libtiff
eigen
]
++ lib.optionals stdenv.isDarwin [ Carbon Cocoa ];
# The tests use cmake's findPackage to find the installed version of
# pangolin, which isn't what we want (or available).
doCheck = false;
cmakeFlags = [ "-DBUILD_TESTS=OFF" ];
meta = {
description = "A lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input";
longDescription = ''
Pangolin is a lightweight portable rapid development library for managing
OpenGL display / interaction and abstracting video input. At its heart is
a simple OpenGl viewport manager which can help to modularise 3D
visualisation without adding to its complexity, and offers an advanced
but intuitive 3D navigation handler. Pangolin also provides a mechanism
for manipulating program variables through config files and ui
integration, and has a flexible real-time plotter for visualising
graphical data.
'';
homepage = "https://github.com/stevenlovegrove/Pangolin";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.expipiplus1 ];
platforms = lib.platforms.all;
};
}