vivictpp: init at 0.3.1
This commit is contained in:
parent
7fc7433df2
commit
d7a9402f63
2 changed files with 75 additions and 0 deletions
pkgs
73
pkgs/applications/video/vivictpp/default.nix
Normal file
73
pkgs/applications/video/vivictpp/default.nix
Normal file
|
@ -0,0 +1,73 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
, meson, cmake, ninja, pkg-config
|
||||
, python3, git
|
||||
, SDL2, SDL2_ttf
|
||||
, freetype, harfbuzz
|
||||
, ffmpeg
|
||||
, cacert }:
|
||||
|
||||
let
|
||||
version = "0.3.1";
|
||||
withSubprojects = stdenv.mkDerivation {
|
||||
name = "sources-with-subprojects";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vivictorg";
|
||||
repo = "vivictpp";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-6YfYeUrM7cq8hnOPMq0Uq/HToFBDri0N/r0SU0LeT/Y=";
|
||||
};
|
||||
|
||||
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-lIm2Bwy61St9d1e6QSm5ZpSIDR9ucaQKBPHATTDEgW4=";
|
||||
};
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -34845,6 +34845,8 @@ with pkgs;
|
|||
else null;
|
||||
};
|
||||
|
||||
vivictpp = callPackage ../applications/video/vivictpp { };
|
||||
|
||||
vpcs = callPackage ../applications/virtualization/vpcs { };
|
||||
|
||||
primusLib = callPackage ../tools/X11/primus/lib.nix {
|
||||
|
|
Loading…
Reference in a new issue