2022-11-02 22:02:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-01-13 08:15:51 +00:00
|
|
|
, cmake
|
2022-11-02 22:02:43 +00:00
|
|
|
, pkg-config
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
, callPackage
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
# for passthru.tests
|
2022-11-02 22:02:43 +00:00
|
|
|
, imagemagick
|
|
|
|
, libheif
|
|
|
|
, imlib2Full
|
|
|
|
, gst_all_1
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: rec {
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.0.15";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libde265";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strukturag";
|
|
|
|
repo = "libde265";
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-guiLM4RNe5O0qpeCoQUbs1Z7j0wp8iK9za2+6NIB8yY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
passthru.tests = {
|
2023-02-02 18:25:31 +00:00
|
|
|
inherit imagemagick libheif imlib2Full;
|
2022-11-02 22:02:43 +00:00
|
|
|
inherit (gst_all_1) gst-plugins-bad;
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
test-corpus-decode = callPackage ./test-corpus-decode.nix {
|
|
|
|
libde265 = finalAttrs.finalPackage;
|
|
|
|
};
|
2022-11-02 22:02:43 +00:00
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/strukturag/libde265";
|
|
|
|
description = "Open h.265 video codec implementation";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dec265";
|
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
|
|
|
};
|
2023-04-29 16:46:19 +00:00
|
|
|
})
|