2022-11-02 22:02:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
, imagemagick
|
|
|
|
, imagemagick6
|
|
|
|
, libheif
|
|
|
|
, imlib2Full
|
|
|
|
, gst_all_1
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-11-02 22:02:43 +00:00
|
|
|
version = "1.0.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libde265";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strukturag";
|
|
|
|
repo = "libde265";
|
|
|
|
rev = "v${version}";
|
2022-11-02 22:02:43 +00:00
|
|
|
sha256 = "sha256-OpiQapppuKCR27tIG5OW+KiNMP9ysv7CaobiBOW6VUI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit imagemagick imagemagick6 libheif imlib2Full;
|
|
|
|
inherit (gst_all_1) gst-plugins-bad;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/strukturag/libde265";
|
|
|
|
description = "Open h.265 video codec implementation";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ gebner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|