lol
1{ lib, stdenv, fetchFromGitHub, unzip, cmake, freeglut, libGLU, libGL, zlib, swig, doxygen, xorg, python3 }:
2
3stdenv.mkDerivation rec {
4 pname = "partio";
5 version = "1.14.6";
6
7 src = fetchFromGitHub {
8 owner = "wdas";
9 repo = "partio";
10 rev = "refs/tags/v${version}";
11 hash = "sha256-S8U5I3dllFzDSocU1mJ8FYCCmBpsOR4n174oiX5hvAM=";
12 };
13
14 outputs = [ "dev" "out" "lib" ];
15
16 nativeBuildInputs = [ unzip cmake doxygen ];
17 buildInputs = [ freeglut libGLU libGL zlib swig xorg.libXi xorg.libXmu python3 ];
18
19 # TODO:
20 # Sexpr support
21
22 strictDeps = true;
23
24 meta = with lib; {
25 description = "C++ (with python bindings) library for easily reading/writing/manipulating common animation particle formats such as PDB, BGEO, PTC";
26 homepage = "https://www.disneyanimation.com/technology/partio.html";
27 license = licenses.bsd3;
28 platforms = platforms.linux;
29 maintainers = [ maintainers.guibou ];
30 };
31}