2021-03-25 09:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, unzip, cmake, freeglut, libGLU, libGL, zlib, swig, doxygen, xorg }:
|
2017-09-17 21:16:04 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "partio";
|
2018-03-01 09:45:12 +00:00
|
|
|
version = "2018-03-01";
|
2017-09-17 21:16:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wdas";
|
|
|
|
repo = "partio";
|
2018-03-01 09:45:12 +00:00
|
|
|
rev = "8b6ea0d20f1ab77cd7f18390999251e60932de4a";
|
|
|
|
sha256 = "16sdj103v02l2dgq9y9cna9jakafabz9jxzdxsd737ir6wn10ksb";
|
2017-09-17 21:16:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" "lib" ];
|
|
|
|
|
2018-03-01 09:45:12 +00:00
|
|
|
nativeBuildInputs = [ unzip cmake doxygen ];
|
2021-03-25 09:12:51 +00:00
|
|
|
buildInputs = [ freeglut libGLU libGL zlib swig xorg.libXi xorg.libXmu ];
|
2017-09-17 21:16:04 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make partio
|
|
|
|
|
|
|
|
mkdir $dev
|
|
|
|
mkdir $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
# TODO:
|
|
|
|
# Sexpr support
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-03-01 09:45:12 +00:00
|
|
|
make install prefix=$out
|
|
|
|
mkdir $dev/include/partio
|
|
|
|
mv $dev/include/*.h $dev/include/partio
|
2017-09-17 21:16:04 +01:00
|
|
|
'';
|
|
|
|
|
2021-03-25 09:12:51 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-09-17 21:16:04 +01:00
|
|
|
description = "C++ (with python bindings) library for easily reading/writing/manipulating common animation particle formats such as PDB, BGEO, PTC";
|
|
|
|
homepage = "https://www.disneyanimation.com/technology/partio.html";
|
|
|
|
license = licenses.bsd3;
|
2018-03-01 09:45:12 +00:00
|
|
|
platforms = platforms.linux;
|
2017-09-17 21:16:04 +01:00
|
|
|
maintainers = [ maintainers.guibou ];
|
|
|
|
};
|
|
|
|
}
|