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