mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 20:48:01 +00:00
xeve: init at 0.4.3
This commit is contained in:
parent
1307c7f27e
commit
3189bf160b
49
pkgs/by-name/xe/xeve/package.nix
Normal file
49
pkgs/by-name/xe/xeve/package.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
gitUpdater,
|
||||
stdenv,
|
||||
cmake,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xeve";
|
||||
version = "0.4.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mpeg5";
|
||||
repo = "xeve";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-8YueEx2oIh24jV38bzpDlCVHNZB7HDOXeP5MANM8zBc=";
|
||||
};
|
||||
|
||||
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;
|
||||
broken = !stdenv.hostPlatform.isx86;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user