3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/alembic/default.nix

47 lines
1,011 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, unzip, cmake, openexr, hdf5-threadsafe }:
2017-09-17 21:00:38 +01:00
stdenv.mkDerivation rec
{
pname = "alembic";
2020-08-25 01:53:08 +01:00
version = "1.7.14";
2017-09-17 21:00:38 +01:00
src = fetchFromGitHub {
owner = "alembic";
repo = "alembic";
2019-09-09 00:38:31 +01:00
rev = version;
2020-08-25 01:53:08 +01:00
sha256 = "0yri063v7j5jsvqbmlwr0hf2d1a55dgc1nj85rf10sxqhijwzk55";
2017-09-17 21:00:38 +01:00
};
outputs = [ "bin" "dev" "out" "lib" ];
nativeBuildInputs = [ unzip cmake ];
buildInputs = [ openexr hdf5-threadsafe ];
2017-09-17 21:00:38 +01: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 ];
};
}