nixpkgs/pkgs/applications/video/vivictpp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.5 KiB
Nix
Raw Normal View History

2023-05-04 14:18:15 +00:00
{ lib, stdenv, fetchFromGitHub
, meson, cmake, ninja, pkg-config
, python3, git
, SDL2, SDL2_ttf
, freetype, harfbuzz
, ffmpeg
, cacert }:
let
2023-12-10 17:24:31 +00:00
version = "1.0.0";
2023-05-04 14:18:15 +00:00
withSubprojects = stdenv.mkDerivation {
name = "sources-with-subprojects";
src = fetchFromGitHub {
owner = "vivictorg";
repo = "vivictpp";
rev = "v${version}";
2023-12-10 17:24:31 +00:00
hash = "sha256-dCtMjemEjXe63ELAfQhzJl3GecqWLcjL2y5Htn6hYgU=";
2023-05-04 14:18:15 +00:00
};
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";
2023-12-10 17:24:31 +00:00
outputHash = "sha256-a7NBQJt5T+KwP8Djc8TQiVLNZF8UcXlXrv2G/dZ54aM=";
2023-05-04 14:18:15 +00:00
};
in stdenv.mkDerivation rec {
pname = "vivictpp";
inherit version;
src = withSubprojects;
nativeBuildInputs = [
meson
cmake
ninja
pkg-config
python3
git
];
buildInputs = [
SDL2
SDL2_ttf
freetype
harfbuzz
ffmpeg
];
preConfigure = ''
patchShebangs .
'';
meta = with lib; {
description = "An 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 = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ tilpner ];
2023-11-27 01:17:53 +00:00
mainProgram = "vivictpp";
2023-05-04 14:18:15 +00:00
};
}