@@ -0,0 +1,54 @@
1+{ stdenv, fetchFromGitHub, cmake, pkgconfig, doxygen, mesa_noglu, glew, xorg
2+, ffmpeg, python3 , libjpeg, libpng, libtiff, eigen }:
3+
4+stdenv.mkDerivation rec {
5+ name = "pangolin-${version}";
6+
7+ version = "2017-08-02";
8+
9+ src = fetchFromGitHub {
10+ owner = "stevenlovegrove";
11+ repo = "Pangolin";
12+ rev = "f05a8cdc4f0e32cc1664a430f1f85e60e233c407";
13+ sha256 = "0pfbaarlsw7f7cmsppm7m13nz0k530wwwyczy2l9k448p3v7x9j0";
14+ };
15+
16+ nativeBuildInputs = [ cmake pkgconfig doxygen ];
17+
18+ buildInputs = [
19+ mesa_noglu
20+ glew
21+ xorg.libX11
22+ ffmpeg
23+ python3
24+ libjpeg
25+ libpng
26+ libtiff
27+ eigen
28+ ];
29+
30+ enableParallelBuilding = true;
31+
32+ # The tests use cmake's findPackage to find the installed version of
33+ # pangolin, which isn't what we want (or available).
34+ doCheck = false;
35+ cmakeFlags = [ "-DBUILD_TESTS=OFF" ];
36+
37+ meta = {
38+ description = "A lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input";
39+ longDescription = ''
40+ Pangolin is a lightweight portable rapid development library for managing
41+ OpenGL display / interaction and abstracting video input. At its heart is
42+ a simple OpenGl viewport manager which can help to modularise 3D
43+ visualisation without adding to its complexity, and offers an advanced
44+ but intuitive 3D navigation handler. Pangolin also provides a mechanism
45+ for manipulating program variables through config files and ui
46+ integration, and has a flexible real-time plotter for visualising
47+ graphical data.
48+ '';
49+ homepage = https://github.com/stevenlovegrove/Pangolin;
50+ license = stdenv.lib.licenses.mit;
51+ maintainers = [ stdenv.lib.maintainers.expipiplus1 ];
52+ platforms = stdenv.lib.platforms.all;
53+ };
54+}