Files
nixpkgs/pkgs/by-name/va/vapoursynth-bestsource/package.nix
quantenzitrone d077a4dc0a xxhash: rename from xxHash
rename to lowercase to fit package naming conventions
2026-03-06 20:15:57 +01:00

65 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
meson,
ninja,
pkg-config,
vapoursynth,
ffmpeg,
xxhash,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "vapoursynth-bestsource";
version = "13";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
fetchSubmodules = true;
owner = "vapoursynth";
repo = "bestsource";
tag = "R${finalAttrs.version}";
hash = "sha256-c+FMFWICDS8Plj6GE2vvhWPmf56Vk10j41HUK1q20/U=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
vapoursynth
(ffmpeg.override { withLcms2 = true; })
xxhash
];
postPatch = ''
substituteInPlace meson.build \
--replace-fail "vapoursynth_dep.get_variable(pkgconfig: 'libdir')" "get_option('libdir')"
'';
passthru.updateScript = gitUpdater {
rev-prefix = "R";
ignoredVersions = "*-RC*";
};
meta = {
description = "Wrapper library around FFmpeg that ensures sample and frame accurate access to audio and video";
homepage = "https://github.com/vapoursynth/bestsource";
license = with lib.licenses; [
mit
wtfpl
gpl2Plus
];
maintainers = with lib.maintainers; [ snaki ];
platforms = lib.platforms.all;
};
})