tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
hqplayerd: 4.32.4 -> 4.33.0
Bernardo Meurer
3 years ago
76a857c7
16722903
+160
-7
3 changed files
expand all
collapse all
unified
split
pkgs
servers
hqplayerd
add-option-for-installation-sysconfdir.patch
default.nix
rygel.nix
+35
pkgs/servers/hqplayerd/add-option-for-installation-sysconfdir.patch
···
1
1
+
diff --git a/meson.build b/meson.build
2
2
+
index 8af2fcf9..0e318307 100644
3
3
+
--- a/meson.build
4
4
+
+++ b/meson.build
5
5
+
@@ -22,7 +22,11 @@ if not get_option('uninstalled')
6
6
+
rygel_datadir = join_paths(get_option('prefix'), get_option('datadir'), 'rygel')
7
7
+
rygel_libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'),
8
8
+
'rygel')
9
9
+
- rygel_sysconfdir = join_paths(get_option('prefix'), get_option('sysconfdir'))
10
10
+
+ if get_option('sysconfdir_install') != ''
11
11
+
+ rygel_sysconfdir = join_paths(get_option('prefix'), get_option('sysconfdir_install'))
12
12
+
+ else
13
13
+
+ rygel_sysconfdir = join_paths(get_option('prefix'), get_option('sysconfdir'))
14
14
+
+ endif
15
15
+
rygel_plugindir = join_paths(rygel_libdir, 'rygel-2.6', 'plugins')
16
16
+
rygel_enginedir = join_paths(rygel_libdir, 'rygel-2.6', 'engines')
17
17
+
rygel_presetdir = join_paths(rygel_datadir, 'presets')
18
18
+
@@ -57,7 +61,7 @@ conf.set_quoted('DATA_DIR', rygel_datadir)
19
19
+
conf.set_quoted('PLUGIN_DIR', rygel_plugindir)
20
20
+
conf.set_quoted('BIG_ICON_DIR', rygel_bigicondir)
21
21
+
conf.set_quoted('SMALL_ICON_DIR', rygel_smallicondir)
22
22
+
-conf.set_quoted('SYS_CONFIG_DIR', rygel_sysconfdir)
23
23
+
+conf.set_quoted('SYS_CONFIG_DIR', get_option('sysconfdir'))
24
24
+
conf.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
25
25
+
conf.set_quoted('MX_EXTRACT_PATH', join_paths(rygel_libexecdir, 'mx-extract'))
26
26
+
conf.set_quoted('DESKTOP_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'applications'))
27
27
+
diff --git a/meson_options.txt b/meson_options.txt
28
28
+
index fd04776a..3dee43ba 100644
29
29
+
--- a/meson_options.txt
30
30
+
+++ b/meson_options.txt
31
31
+
@@ -1,3 +1,4 @@
32
32
+
+option('sysconfdir_install', type: 'string', value: '', description: 'sysconfdir to use during installation')
33
33
+
option('uninstalled', type: 'boolean', value: 'false', description: 'Run Rygel from build directory only')
34
34
+
option('api-docs', type: 'boolean', value: 'false', description: 'Build the API documentation')
35
35
+
option('man_pages', type: 'boolean', value: 'true', description: 'Build the man pages')
+17
-7
pkgs/servers/hqplayerd/default.nix
···
6
6
, fetchurl
7
7
, flac
8
8
, gcc12
9
9
-
, gnome
10
9
, gssdp
11
10
, gupnp
12
11
, gupnp-av
13
12
, lame
14
13
, libgmpris
15
14
, libusb-compat-0_1
16
16
-
, llvmPackages_10
15
15
+
, llvmPackages_14
17
16
, meson
18
17
, mpg123
19
18
, ninja
20
19
, rpmextract
21
20
, wavpack
22
22
-
}:
21
21
+
22
22
+
, callPackage
23
23
+
, rygel ? null
24
24
+
}@inputs:
25
25
+
let
26
26
+
# FIXME: Replace with gnome.rygel once hqplayerd releases a new version.
27
27
+
rygel-hqplayerd = inputs.rygel or (callPackage ./rygel.nix { });
28
28
+
in
23
29
stdenv.mkDerivation rec {
24
30
pname = "hqplayerd";
25
25
-
version = "4.32.4-94sse42";
31
31
+
version = "4.33.0-96sse42";
26
32
27
33
src = fetchurl {
28
34
url = "https://www.signalyst.eu/bins/${pname}/fc36/${pname}-${version}.fc36.x86_64.rpm";
29
29
-
hash = "sha256-hTckJdZzD/Sx/uV30dlGiT46QvzIGp6BQdNNRlQ/Mgw=";
35
35
+
hash = "sha256-4gPK31XMd5JUp2+il1Qa7r0EaXVGEvKoYLNGSD2dLUs=";
30
36
};
31
37
32
38
unpackPhase = ''
···
40
46
cairo
41
47
flac
42
48
gcc12.cc.lib
43
43
-
gnome.rygel
49
49
+
rygel-hqplayerd
44
50
gssdp
45
51
gupnp
46
52
gupnp-av
47
53
lame
48
54
libgmpris
49
55
libusb-compat-0_1
50
50
-
llvmPackages_10.openmp
56
56
+
llvmPackages_14.openmp
51
57
mpg123
52
58
wavpack
53
59
];
···
105
111
addOpenGLRunpath $out/bin/hqplayerd
106
112
$out/bin/hqplayerd --version
107
113
'';
114
114
+
115
115
+
passthru = {
116
116
+
rygel = rygel-hqplayerd;
117
117
+
};
108
118
109
119
meta = with lib; {
110
120
homepage = "https://www.signalyst.com/custom.html";
+108
pkgs/servers/hqplayerd/rygel.nix
···
1
1
+
{ lib, stdenv
2
2
+
, fetchurl
3
3
+
, meson
4
4
+
, ninja
5
5
+
, pkg-config
6
6
+
, vala
7
7
+
, gettext
8
8
+
, libxml2
9
9
+
, gobject-introspection
10
10
+
, wrapGAppsHook
11
11
+
, python3
12
12
+
, glib
13
13
+
, gssdp
14
14
+
, gupnp
15
15
+
, gupnp-av
16
16
+
, gupnp-dlna
17
17
+
, gst_all_1
18
18
+
, libgee
19
19
+
, libsoup
20
20
+
, gtk3
21
21
+
, libmediaart
22
22
+
, sqlite
23
23
+
, systemd
24
24
+
, tracker
25
25
+
, shared-mime-info
26
26
+
, gnome
27
27
+
}:
28
28
+
29
29
+
stdenv.mkDerivation rec {
30
30
+
pname = "rygel";
31
31
+
version = "0.40.4";
32
32
+
33
33
+
# TODO: split out lib
34
34
+
outputs = [ "out" "dev" ];
35
35
+
36
36
+
src = fetchurl {
37
37
+
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
38
38
+
sha256 = "c22K2+hhX2y8j8//mEXcmF/RDhZinaI2tLUtvt8KNIs=";
39
39
+
};
40
40
+
41
41
+
patches = [
42
42
+
./add-option-for-installation-sysconfdir.patch
43
43
+
];
44
44
+
45
45
+
nativeBuildInputs = [
46
46
+
meson
47
47
+
ninja
48
48
+
pkg-config
49
49
+
vala
50
50
+
gettext
51
51
+
libxml2
52
52
+
gobject-introspection
53
53
+
wrapGAppsHook
54
54
+
python3
55
55
+
];
56
56
+
57
57
+
buildInputs = [
58
58
+
glib
59
59
+
gssdp
60
60
+
gupnp
61
61
+
gupnp-av
62
62
+
gupnp-dlna
63
63
+
libgee
64
64
+
libsoup
65
65
+
gtk3
66
66
+
libmediaart
67
67
+
sqlite
68
68
+
systemd
69
69
+
tracker
70
70
+
shared-mime-info
71
71
+
] ++ (with gst_all_1; [
72
72
+
gstreamer
73
73
+
gst-editing-services
74
74
+
gst-plugins-base
75
75
+
gst-plugins-good
76
76
+
gst-plugins-bad
77
77
+
gst-plugins-ugly
78
78
+
]);
79
79
+
80
80
+
mesonFlags = [
81
81
+
"-Dsystemd-user-units-dir=${placeholder "out"}/lib/systemd/user"
82
82
+
"-Dapi-docs=false"
83
83
+
"--sysconfdir=/etc"
84
84
+
"-Dsysconfdir_install=${placeholder "out"}/etc"
85
85
+
];
86
86
+
87
87
+
doCheck = true;
88
88
+
89
89
+
postPatch = ''
90
90
+
patchShebangs data/xml/process-xml.py
91
91
+
'';
92
92
+
93
93
+
passthru = {
94
94
+
updateScript = gnome.updateScript {
95
95
+
packageName = pname;
96
96
+
attrPath = "gnome.${pname}";
97
97
+
versionPolicy = "odd-unstable";
98
98
+
};
99
99
+
};
100
100
+
101
101
+
meta = with lib; {
102
102
+
description = "A home media solution (UPnP AV MediaServer) that allows you to easily share audio, video and pictures to other devices";
103
103
+
homepage = "https://wiki.gnome.org/Projects/Rygel";
104
104
+
license = licenses.lgpl21Plus;
105
105
+
maintainers = teams.gnome.members;
106
106
+
platforms = platforms.linux;
107
107
+
};
108
108
+
}