nixpkgs-suyu/pkgs/development/libraries/libyuv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
955 B
Nix
Raw Normal View History

2022-02-18 20:49:35 +01:00
{ 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 ];
2022-10-15 20:02:57 +02:00
NIX_CFLAGS_LINK = lib.optional stdenv.isDarwin "-ljpeg";
2022-02-18 20:49:35 +01:00
meta = with lib; {
homepage = "https://chromium.googlesource.com/libyuv/libyuv";
description = "Open source project that includes YUV scaling and conversion functionality";
2022-10-15 20:02:57 +02:00
platforms = platforms.unix;
2022-02-18 20:49:35 +01:00
maintainers = with maintainers; [ leixb ];
license = licenses.bsd3;
};
}