Files
nixpkgs/pkgs/by-name/vi/vivictpp/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

99 lines
1.8 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
meson,
cmake,
ninja,
pkg-config,
python3,
git,
SDL2,
SDL2_ttf,
libX11,
freetype,
harfbuzz,
ffmpeg,
cacert,
zlib,
writeShellScript,
nix-update,
}:
let
version = "1.3.0";
withSubprojects = stdenv.mkDerivation {
pname = "sources-with-subprojects";
inherit version;
src = fetchFromGitHub {
owner = "vivictorg";
repo = "vivictpp";
tag = "v${version}";
fetchSubmodules = true;
hash = "sha256-yzUgLZbqEzyJINWQUTC/j33XbjSXP1vpDlgiKv6Jx9Q=";
};
nativeBuildInputs = [
meson
cacert
git
];
buildCommand = ''
cp -r --no-preserve=mode $src $out
cd $out
meson subprojects download
find subprojects -type d -name .git -prune -execdir rm -r {} +
'';
outputHashMode = "recursive";
outputHash = "sha256-PtOb47QOffGje1U8Tle9AQon7ZCgMp/lITPAfM9/wr4=";
};
in
stdenv.mkDerivation {
pname = "vivictpp";
inherit version;
src = withSubprojects;
nativeBuildInputs = [
meson
cmake
ninja
pkg-config
python3
git
];
buildInputs = [
SDL2
libX11
SDL2_ttf
freetype
harfbuzz
ffmpeg
zlib
];
preConfigure = ''
patchShebangs .
'';
passthru.updateScript = writeShellScript "update-vivictpp" ''
${lib.getExe nix-update} vivictpp.src
${lib.getExe nix-update} vivictpp --version skip
'';
meta = {
description = "Easy to use tool for subjective comparison of the visual quality of different encodings of the same video source";
homepage = "https://github.com/vivictorg/vivictpp";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ tilpner ];
mainProgram = "vivictpp";
};
}