2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-03-16 01:33:36 +01:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2019-03-16 01:33:36 +01:00
|
|
|
, vala
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook
|
|
|
|
, python3
|
|
|
|
, glib
|
|
|
|
, gssdp
|
|
|
|
, gupnp
|
|
|
|
, gupnp-av
|
|
|
|
, gupnp-dlna
|
|
|
|
, gst_all_1
|
|
|
|
, libgee
|
|
|
|
, libsoup
|
|
|
|
, gtk3
|
|
|
|
, libmediaart
|
|
|
|
, sqlite
|
|
|
|
, systemd
|
|
|
|
, tracker
|
|
|
|
, shared-mime-info
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2019-03-16 01:33:36 +01:00
|
|
|
}:
|
2018-08-15 00:11:34 +02:00
|
|
|
|
2019-03-16 01:33:36 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-08-15 00:11:34 +02:00
|
|
|
pname = "rygel";
|
2021-10-02 01:08:07 +02:00
|
|
|
version = "0.40.2";
|
2018-08-15 00:11:34 +02:00
|
|
|
|
|
|
|
# TODO: split out lib
|
2019-04-18 12:37:01 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
2018-08-15 00:11:34 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 14:21:58 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-10-02 01:08:07 +02:00
|
|
|
sha256 = "yejHNiltIsTe/pWXJ6KdMUN7vSt6oMZHDWviQBEFBpc=";
|
2018-08-15 00:11:34 +02:00
|
|
|
};
|
|
|
|
|
2021-10-02 01:08:07 +02:00
|
|
|
patches = [
|
|
|
|
./add-option-for-installation-sysconfdir.patch
|
|
|
|
];
|
|
|
|
|
2018-08-15 00:11:34 +02:00
|
|
|
nativeBuildInputs = [
|
2019-03-16 01:33:36 +01:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2019-03-16 01:33:36 +01:00
|
|
|
vala
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
python3
|
2018-08-15 00:11:34 +02:00
|
|
|
];
|
2019-03-16 01:33:36 +01:00
|
|
|
|
2018-08-15 00:11:34 +02:00
|
|
|
buildInputs = [
|
2019-03-16 01:33:36 +01:00
|
|
|
glib
|
|
|
|
gssdp
|
|
|
|
gupnp
|
|
|
|
gupnp-av
|
|
|
|
gupnp-dlna
|
|
|
|
libgee
|
|
|
|
libsoup
|
|
|
|
gtk3
|
|
|
|
libmediaart
|
|
|
|
sqlite
|
|
|
|
systemd
|
|
|
|
tracker
|
|
|
|
shared-mime-info
|
2018-08-15 00:11:34 +02:00
|
|
|
] ++ (with gst_all_1; [
|
2019-03-16 01:33:36 +01:00
|
|
|
gstreamer
|
2020-09-18 17:16:17 +02:00
|
|
|
gst-editing-services
|
2019-03-16 01:33:36 +01:00
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-ugly
|
2018-08-15 00:11:34 +02:00
|
|
|
]);
|
|
|
|
|
2019-03-16 01:33:36 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dsystemd-user-units-dir=${placeholder "out"}/lib/systemd/user"
|
2019-04-18 12:37:01 +02:00
|
|
|
"-Dapi-docs=false"
|
2018-08-15 00:11:34 +02:00
|
|
|
"--sysconfdir=/etc"
|
2019-04-18 12:37:01 +02:00
|
|
|
"-Dsysconfdir_install=${placeholder "out"}/etc"
|
2018-08-15 00:11:34 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2019-03-16 01:33:36 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs data/xml/process-xml.py
|
|
|
|
'';
|
2018-08-15 00:11:34 +02:00
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2018-08-15 00:11:34 +02:00
|
|
|
packageName = pname;
|
2021-05-07 23:18:14 +02:00
|
|
|
attrPath = "gnome.${pname}";
|
2021-03-21 00:57:24 +01:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-08-15 00:11:34 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-08-15 00:11:34 +02:00
|
|
|
description = "A home media solution (UPnP AV MediaServer) that allows you to easily share audio, video and pictures to other devices";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Rygel";
|
2018-08-15 00:11:34 +02:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2018-08-15 00:11:34 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|