tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
vivictpp: init at 0.3.1
tilpner
2 years ago
d7a9402f
7fc7433d
+75
2 changed files
expand all
collapse all
unified
split
pkgs
applications
video
vivictpp
default.nix
top-level
all-packages.nix
+73
pkgs/applications/video/vivictpp/default.nix
···
1
1
+
{ lib, stdenv, fetchFromGitHub
2
2
+
, meson, cmake, ninja, pkg-config
3
3
+
, python3, git
4
4
+
, SDL2, SDL2_ttf
5
5
+
, freetype, harfbuzz
6
6
+
, ffmpeg
7
7
+
, cacert }:
8
8
+
9
9
+
let
10
10
+
version = "0.3.1";
11
11
+
withSubprojects = stdenv.mkDerivation {
12
12
+
name = "sources-with-subprojects";
13
13
+
14
14
+
src = fetchFromGitHub {
15
15
+
owner = "vivictorg";
16
16
+
repo = "vivictpp";
17
17
+
rev = "v${version}";
18
18
+
hash = "sha256-6YfYeUrM7cq8hnOPMq0Uq/HToFBDri0N/r0SU0LeT/Y=";
19
19
+
};
20
20
+
21
21
+
nativeBuildInputs = [
22
22
+
meson
23
23
+
cacert
24
24
+
git
25
25
+
];
26
26
+
27
27
+
buildCommand = ''
28
28
+
cp -r --no-preserve=mode $src $out
29
29
+
cd $out
30
30
+
31
31
+
meson subprojects download
32
32
+
find subprojects -type d -name .git -prune -execdir rm -r {} +
33
33
+
'';
34
34
+
35
35
+
outputHashMode = "recursive";
36
36
+
outputHash = "sha256-lIm2Bwy61St9d1e6QSm5ZpSIDR9ucaQKBPHATTDEgW4=";
37
37
+
};
38
38
+
in stdenv.mkDerivation rec {
39
39
+
pname = "vivictpp";
40
40
+
inherit version;
41
41
+
42
42
+
src = withSubprojects;
43
43
+
44
44
+
nativeBuildInputs = [
45
45
+
meson
46
46
+
cmake
47
47
+
ninja
48
48
+
pkg-config
49
49
+
50
50
+
python3
51
51
+
git
52
52
+
];
53
53
+
54
54
+
buildInputs = [
55
55
+
SDL2
56
56
+
SDL2_ttf
57
57
+
freetype
58
58
+
harfbuzz
59
59
+
ffmpeg
60
60
+
];
61
61
+
62
62
+
preConfigure = ''
63
63
+
patchShebangs .
64
64
+
'';
65
65
+
66
66
+
meta = with lib; {
67
67
+
description = "An easy to use tool for subjective comparison of the visual quality of different encodings of the same video source";
68
68
+
homepage = "https://github.com/vivictorg/vivictpp";
69
69
+
license = licenses.gpl2Plus;
70
70
+
platforms = platforms.unix;
71
71
+
maintainers = with maintainers; [ tilpner ];
72
72
+
};
73
73
+
}
+2
pkgs/top-level/all-packages.nix
···
34845
34845
else null;
34846
34846
};
34847
34847
34848
34848
+
vivictpp = callPackage ../applications/video/vivictpp { };
34849
34849
+
34848
34850
vpcs = callPackage ../applications/virtualization/vpcs { };
34849
34851
34850
34852
primusLib = callPackage ../tools/X11/primus/lib.nix {