tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
sview: init at 20_08
Marko Muller
1 year ago
b5045fb4
87055703
+85
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
sv
sview
package.nix
+85
pkgs/by-name/sv/sview/package.nix
···
1
1
+
{
2
2
+
fetchFromGitHub,
3
3
+
fetchurl,
4
4
+
ffmpeg_4,
5
5
+
fontconfig,
6
6
+
gtk2,
7
7
+
lib,
8
8
+
libconfig,
9
9
+
libGL,
10
10
+
libXpm,
11
11
+
makeFontsConf,
12
12
+
makeWrapper,
13
13
+
nanum,
14
14
+
openal,
15
15
+
pkg-config,
16
16
+
stdenv,
17
17
+
}:
18
18
+
19
19
+
stdenv.mkDerivation rec {
20
20
+
pname = "sview";
21
21
+
version = "20_08";
22
22
+
23
23
+
src = fetchFromGitHub {
24
24
+
owner = "gkv311";
25
25
+
repo = "sview";
26
26
+
tag = version;
27
27
+
hash = "sha256-mbEacdBQchziXoZ5vJUiEpa/iHeXeaozte2aXs50/Fo=";
28
28
+
};
29
29
+
30
30
+
droidSansFallback = fetchurl {
31
31
+
url = "https://raw.githubusercontent.com/aosp-mirror/platform_frameworks_base/2d8961d99f3aa559dbd4b78b716ab36c456b43e1/data/fonts/DroidSansFallbackFull.ttf";
32
32
+
sha256 = "sha256-I5IBVTBDi6/Ejt/ErubZ3iOH9iemE02Ks9/MmdIcgkA=";
33
33
+
};
34
34
+
35
35
+
nativeBuildInputs = [
36
36
+
makeWrapper
37
37
+
pkg-config
38
38
+
];
39
39
+
40
40
+
buildInputs = [
41
41
+
ffmpeg_4
42
42
+
gtk2
43
43
+
libconfig
44
44
+
libGL
45
45
+
libXpm
46
46
+
openal
47
47
+
];
48
48
+
49
49
+
fontsConf = makeFontsConf {
50
50
+
fontDirectories = [
51
51
+
nanum
52
52
+
"placeholder"
53
53
+
];
54
54
+
};
55
55
+
56
56
+
installPhase = ''
57
57
+
runHook preInstall
58
58
+
make install APP_PREFIX=$out DISABLE_UPDATER=1
59
59
+
mkdir -p $out/share/sView/fonts
60
60
+
cp ${droidSansFallback} $out/share/sView/fonts/DroidSansFallbackFull.ttf
61
61
+
cp '${fontsConf}' $out/share/sView/fonts/fonts.conf
62
62
+
runHook postInstall
63
63
+
'';
64
64
+
65
65
+
postFixup = ''
66
66
+
substituteInPlace $out/share/sView/fonts/fonts.conf \
67
67
+
--replace-warn "placeholder" "$out/share/sView/fonts/";
68
68
+
wrapProgram $out/bin/sView \
69
69
+
--set StShare $out/share/sView \
70
70
+
--set FONTCONFIG_FILE $out/share/sView/fonts/fonts.conf
71
71
+
'';
72
72
+
73
73
+
meta = with lib; {
74
74
+
description = "Viewer for 3D stereoscopic videos and images";
75
75
+
homepage = "https://www.sview.ru/en/";
76
76
+
license = with licenses; [
77
77
+
cc-by-40
78
78
+
gpl3Only
79
79
+
asl20
80
80
+
];
81
81
+
maintainers = with maintainers; [ mx2uller ];
82
82
+
mainProgram = "sView";
83
83
+
platforms = platforms.linux;
84
84
+
};
85
85
+
}