2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, unzip, cmake, openexr, hdf5-threadsafe }:
|
2017-09-17 21:00:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec
|
|
|
|
{
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "alembic";
|
2021-09-14 01:45:49 +01:00
|
|
|
version = "1.8.3";
|
2017-09-17 21:00:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alembic";
|
|
|
|
repo = "alembic";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2021-09-14 01:45:49 +01:00
|
|
|
sha256 = "sha256-QnqUD8KmMDmEZ1REoKN70SwVICOdyGPZsB/lU9nojj4=";
|
2017-09-17 21:00:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "lib" ];
|
|
|
|
|
2018-01-16 10:31:35 +00:00
|
|
|
nativeBuildInputs = [ unzip cmake ];
|
|
|
|
buildInputs = [ openexr hdf5-threadsafe ];
|
2017-09-17 21:00:38 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cmake -DUSE_HDF5=ON -DCMAKE_INSTALL_PREFIX=$out/ -DUSE_TESTS=OFF .
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
mkdir -p $bin/bin
|
|
|
|
mkdir -p $dev/include
|
|
|
|
mkdir -p $lib/lib
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install
|
|
|
|
|
|
|
|
mv $out/bin $bin/
|
|
|
|
mv $out/lib $lib/
|
|
|
|
mv $out/include $dev/
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-09-17 21:00:38 +01:00
|
|
|
description = "An open framework for storing and sharing scene data";
|
|
|
|
homepage = "http://alembic.io/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.guibou ];
|
|
|
|
};
|
|
|
|
}
|