9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
57 lines
1.5 KiB
Nix
57 lines
1.5 KiB
Nix
{ stdenv, fetchgit, yasm, perl, cmake, pkg-config, python3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libaom";
|
|
version = "2.0.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://aomedia.googlesource.com/aom";
|
|
rev = "v${version}";
|
|
sha256 = "1616xjhj6770ykn82ml741h8hx44v507iky3s9h7a5lnk9d4cxzy";
|
|
};
|
|
|
|
patches = [ ./outputs.patch ];
|
|
|
|
nativeBuildInputs = [
|
|
yasm perl cmake pkg-config python3
|
|
];
|
|
|
|
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
|
|
'';
|
|
|
|
# Configuration options:
|
|
# https://aomedia.googlesource.com/aom/+/refs/heads/master/build/cmake/aom_config_defaults.cmake
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
"-DENABLE_TESTS=OFF"
|
|
];
|
|
|
|
postFixup = ''
|
|
moveToOutput lib/libaom.a "$static"
|
|
'';
|
|
|
|
outputs = [ "out" "bin" "dev" "static" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Alliance for Open Media AV1 codec library";
|
|
longDescription = ''
|
|
Libaom is the reference implementation of the AV1 codec from the Alliance
|
|
for Open Media. It contains an AV1 library as well as applications like
|
|
an encoder (aomenc) and a decoder (aomdec).
|
|
'';
|
|
homepage = "https://aomedia.org/av1-features/get-started/";
|
|
changelog = "https://aomedia.googlesource.com/aom/+/refs/tags/v${version}/CHANGELOG";
|
|
maintainers = with maintainers; [ primeos kiloreux ];
|
|
platforms = platforms.all;
|
|
license = licenses.bsd2;
|
|
};
|
|
}
|