2022-06-26 10:26:21 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, unzip, cmake, freeglut, libGLU, libGL, zlib, swig, doxygen, xorg, python3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "partio";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "1.14.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wdas";
|
|
|
|
repo = "partio";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-S8U5I3dllFzDSocU1mJ8FYCCmBpsOR4n174oiX5hvAM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" "lib" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip cmake doxygen ];
|
2022-06-26 10:26:21 +00:00
|
|
|
buildInputs = [ freeglut libGLU libGL zlib swig xorg.libXi xorg.libXmu python3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# TODO:
|
|
|
|
# Sexpr support
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00: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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.guibou ];
|
|
|
|
};
|
|
|
|
}
|