2018-12-17 22:22:17 +00:00
|
|
|
{ stdenv, fetchgit, yasm, perl, cmake, pkgconfig, python3, writeText }:
|
2018-03-30 10:05:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-07-03 22:09:38 +00:00
|
|
|
name = "libaom-${version}";
|
2019-01-19 15:55:08 +00:00
|
|
|
version = "1.0.0-errata1";
|
2018-03-30 10:05:47 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://aomedia.googlesource.com/aom";
|
2018-07-03 22:09:38 +00:00
|
|
|
rev = "v${version}";
|
2018-12-29 23:51:06 +00:00
|
|
|
sha256 = "090phh4jl9z6m2pwpfpwcjh6iyw0byngb2n112qxkg6a3gsaa62f";
|
2018-03-30 10:05:47 +00:00
|
|
|
};
|
|
|
|
|
2018-12-17 22:22:17 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
yasm perl cmake pkgconfig python3
|
|
|
|
];
|
2018-03-30 10:05:47 +00:00
|
|
|
|
2018-12-17 22:22:17 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# build uses `git describe` to set the build version
|
|
|
|
cat > $NIX_BUILD_TOP/git << "EOF"
|
|
|
|
#!${stdenv.shell}
|
|
|
|
echo v${version}
|
|
|
|
EOF
|
|
|
|
chmod +x $NIX_BUILD_TOP/git
|
|
|
|
export PATH=$NIX_BUILD_TOP:$PATH
|
2018-12-17 14:32:50 +00:00
|
|
|
'';
|
|
|
|
|
2018-03-30 10:05:47 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "AV1 Bitstream and Decoding Library";
|
|
|
|
homepage = https://aomedia.org/av1-features/get-started/;
|
|
|
|
maintainers = with maintainers; [ kiloreux ];
|
|
|
|
platforms = platforms.all;
|
2018-10-17 18:06:06 +00:00
|
|
|
license = licenses.bsd2;
|
2018-03-30 10:05:47 +00:00
|
|
|
};
|
2018-07-03 22:09:38 +00:00
|
|
|
}
|