Files
nixpkgs/pkgs/by-name/vv/vvenc/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

67 lines
1.4 KiB
Nix

{
lib,
fetchFromGitHub,
stdenv,
gitUpdater,
testers,
cmake,
nlohmann_json,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "vvenc";
version = "1.13.1";
outputs = [
"out"
"lib"
"dev"
];
src = fetchFromGitHub {
owner = "fraunhoferhhi";
repo = "vvenc";
tag = "v${finalAttrs.version}";
hash = "sha256-DPR1HmUYTjhKI+gTHERtxqThZ5oKKMoqYsfE709IrhA=";
};
patches = [ ./unset-darwin-cmake-flags.patch ];
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals stdenv.cc.isGNU [
"-Wno-maybe-uninitialized"
"-Wno-uninitialized"
]
);
buildInputs = [ nlohmann_json ];
nativeBuildInputs = [ cmake ];
cmakeFlags = [
(lib.cmakeBool "VVENC_INSTALL_FULLFEATURE_APP" true)
(lib.cmakeBool "VVENC_ENABLE_THIRDPARTY_JSON" true)
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
];
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
passthru = {
updateScript = gitUpdater {
rev-prefix = "v";
ignoredVersions = "rc";
};
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
};
meta = {
homepage = "https://github.com/fraunhoferhhi/vvenc";
description = "Fraunhofer Versatile Video Encoder";
license = lib.licenses.bsd3Clear;
mainProgram = "vvencapp";
pkgConfigModules = [ "libvvenc" ];
maintainers = with lib.maintainers; [ jopejoe1 ];
platforms = lib.platforms.all;
};
})