mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +00:00
f1547326cf
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/alembic/versions
47 lines
1 KiB
Nix
47 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, unzip, cmake, openexr, hdf5-threadsafe }:
|
|
|
|
stdenv.mkDerivation rec
|
|
{
|
|
name = "alembic-${version}";
|
|
version = "1.7.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alembic";
|
|
repo = "alembic";
|
|
rev = "${version}";
|
|
sha256 = "186wwlbz90gmzr4vsykk4z8bgkd45yhbyfpn8bqwidf9fcimcr2a";
|
|
};
|
|
|
|
outputs = [ "bin" "dev" "out" "lib" ];
|
|
|
|
nativeBuildInputs = [ unzip cmake ];
|
|
buildInputs = [ openexr hdf5-threadsafe ];
|
|
|
|
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 ];
|
|
};
|
|
}
|