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