libyuv: init at 1787

This commit is contained in:
LeixB 2022-02-18 20:49:35 +01:00
parent 05c062a1c6
commit 499da440d7
No known key found for this signature in database
GPG Key ID: FC035BB2BB28E15D
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ lib
, stdenv
, fetchgit
, cmake
, libjpeg
}:
stdenv.mkDerivation rec {
pname = "libyuv";
version = "1787"; # Defined in: include/libyuv/version.h
src = fetchgit {
url = "https://chromium.googlesource.com/libyuv/libyuv.git";
rev = "eb6e7bb63738e29efd82ea3cf2a115238a89fa51"; # refs/heads/stable
sha256 = "sha256-DtRYoaAXb9ZD2OLiKbzKzH5vzuu+Lzu4eHaDgPB9hjU=";
};
nativeBuildInputs = [
cmake
];
# NEON does not work on aarch64, we disable it
cmakeFlags = lib.optionals stdenv.isAarch64 ["-DCMAKE_CXX_FLAGS=-DLIBYUV_DISABLE_NEON"];
buildInputs = [ libjpeg ];
meta = with lib; {
homepage = "https://chromium.googlesource.com/libyuv/libyuv";
description = "Open source project that includes YUV scaling and conversion functionality";
platforms = platforms.linux;
maintainers = with maintainers; [ leixb ];
license = licenses.bsd3;
};
}

View File

@ -18924,6 +18924,8 @@ with pkgs;
libyubikey = callPackage ../development/libraries/libyubikey { };
libyuv = callPackage ../development/libraries/libyuv { };
libzapojit = callPackage ../development/libraries/libzapojit { };
libzen = callPackage ../development/libraries/libzen { };