uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
61
pkgs/development/libraries/libavif/default.nix
Normal file
61
pkgs/development/libraries/libavif/default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, libaom
|
||||
, cmake
|
||||
, pkg-config
|
||||
, zlib
|
||||
, libpng
|
||||
, libjpeg
|
||||
, dav1d
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libavif";
|
||||
version = "0.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AOMediaCodec";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-EGu2avkqQXHFX4gKWsVfVdQN99f4J7Hm86C0sAhuP1Y=";
|
||||
};
|
||||
|
||||
# reco: encode libaom slowest but best, decode dav1d fastest
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
"-DAVIF_CODEC_AOM=ON" # best encoder (slow but small)
|
||||
"-DAVIF_CODEC_DAV1D=ON" # best decoder (fast)
|
||||
"-DAVIF_CODEC_AOM_DECODE=OFF"
|
||||
"-DAVIF_BUILD_APPS=ON"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libaom
|
||||
zlib
|
||||
libpng
|
||||
libjpeg
|
||||
dav1d
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "C implementation of the AV1 Image File Format";
|
||||
longDescription = ''
|
||||
Libavif aims to be a friendly, portable C implementation of the
|
||||
AV1 Image File Format. It is a work-in-progress, but can already
|
||||
encode and decode all AOM supported YUV formats and bit depths
|
||||
(with alpha). It also features an encoder and a decoder
|
||||
(avifenc/avifdec).
|
||||
'';
|
||||
homepage = "https://github.com/AOMediaCodec/libavif";
|
||||
changelog = "https://github.com/AOMediaCodec/libavif/blob/v${version}/CHANGELOG.md";
|
||||
maintainers = with maintainers; [ mkg20001 ];
|
||||
platforms = platforms.all;
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue