blob: f8d44b4a2f1ddb678474d80b76418d4a65bc6050 (
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
|
{
lib,
fetchFromGitHub,
gitUpdater,
stdenv,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xeve";
version = "0.5.0";
src = fetchFromGitHub {
owner = "mpeg5";
repo = "xeve";
rev = "v${finalAttrs.version}";
hash = "sha256-8jXntm/yFme9ZPImdW54jAr11hEsU1K+N5/7RLmITPs=";
};
postPatch = ''
echo v$version > version.txt
'';
nativeBuildInputs = [ cmake ];
postInstall = ''
ln $dev/include/xeve/* $dev/include/
'';
env.NIX_CFLAGS_COMPILE = toString [ "-lm" ];
outputs = [
"out"
"lib"
"dev"
];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = {
homepage = "https://github.com/mpeg5/xeve";
description = "eXtra-fast Essential Video Encoder, MPEG-5 EVC";
license = lib.licenses.bsd3;
mainProgram = "xeve_app";
maintainers = with lib.maintainers; [ jopejoe1 ];
platforms = lib.platforms.all;
# Currently only supports gcc and msvc as compiler, the limitation for clang gets removed in the next release, but that does not fix building on darwin.
broken = !stdenv.hostPlatform.isx86 || !stdenv.cc.isGNU;
};
})
|