2018-01-16 11:31:35 +01:00
|
|
|
{ stdenv, fetchFromGitHub, unzip, cmake, openexr, hdf5-threadsafe }:
|
2017-09-17 22:00:38 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec
|
|
|
|
{
|
|
|
|
name = "alembic-${version}";
|
2018-12-29 20:15:29 +01:00
|
|
|
version = "1.7.10";
|
2017-09-17 22:00:38 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alembic";
|
|
|
|
repo = "alembic";
|
|
|
|
rev = "${version}";
|
2018-12-29 20:15:29 +01:00
|
|
|
sha256 = "186wwlbz90gmzr4vsykk4z8bgkd45yhbyfpn8bqwidf9fcimcr2a";
|
2017-09-17 22:00:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "lib" ];
|
|
|
|
|
2018-01-16 11:31:35 +01:00
|
|
|
nativeBuildInputs = [ unzip cmake ];
|
|
|
|
buildInputs = [ openexr hdf5-threadsafe ];
|
2017-09-17 22:00:38 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
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/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An open framework for storing and sharing scene data";
|
|
|
|
homepage = "http://alembic.io/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.guibou ];
|
|
|
|
};
|
|
|
|
}
|