blob: ebd93572e29ed31c7cc3b2b42d8c42a040f55712 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ lib
, fetchFromGitHub
, gtest
, meson
, nasm
, ninja
, pkg-config
, stdenv
, windows
}:
stdenv.mkDerivation (finalAttrs: {
pname = "openh264";
version = "2.4.1";
src = fetchFromGitHub {
owner = "cisco";
repo = "openh264";
rev = "v${finalAttrs.version}";
hash = "sha256-ai7lcGcQQqpsLGSwHkSs7YAoEfGCIbxdClO6JpGA+MI=";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [
meson
nasm
ninja
pkg-config
];
buildInputs = [
gtest
] ++ lib.optionals stdenv.hostPlatform.isWindows [
windows.pthreads
];
strictDeps = true;
meta = {
homepage = "https://www.openh264.org";
description = "Codec library which supports H.264 encoding and decoding";
changelog = "https://github.com/cisco/openh264/releases/tag/${finalAttrs.src.rev}";
license = with lib.licenses; [ bsd2 ];
maintainers = with lib.maintainers; [ AndersonTorres ];
# See meson.build
platforms = lib.platforms.windows ++ lib.intersectLists
(lib.platforms.x86 ++ lib.platforms.arm ++ lib.platforms.aarch64 ++ lib.platforms.loongarch64)
(lib.platforms.linux ++ lib.platforms.darwin);
};
})
|