nixpkgs-suyu/pkgs/desktops/gnome-3/core/rygel/default.nix

107 lines
1.8 KiB
Nix
Raw Normal View History

{ 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-15 00:11:34 +02:00
stdenv.mkDerivation rec {
2018-08-15 00:11:34 +02:00
pname = "rygel";
version = "0.38.1";
2018-08-15 00:11:34 +02:00
# TODO: split out lib
outputs = [ "out" "dev" ];
2018-08-15 00:11:34 +02:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1w8bi2rw91qyfny1zxhy32k4qn62hdjl2m38f75cp7wv6494d7w0";
2018-08-15 00:11:34 +02:00
};
nativeBuildInputs = [
meson
ninja
pkgconfig
vala
gettext
libxml2
gobject-introspection
wrapGAppsHook
python3
2018-08-15 00:11:34 +02:00
];
2018-08-15 00:11:34 +02:00
buildInputs = [
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; [
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
2018-08-15 00:11:34 +02:00
]);
mesonFlags = [
"-Dsystemd-user-units-dir=${placeholder "out"}/lib/systemd/user"
"-Dapi-docs=false"
2018-08-15 00:11:34 +02:00
"--sysconfdir=/etc"
"-Dsysconfdir_install=${placeholder "out"}/etc"
2018-08-15 00:11:34 +02:00
];
doCheck = true;
patches = [
./add-option-for-installation-sysconfdir.patch
];
postPatch = ''
patchShebangs data/xml/process-xml.py
'';
2018-08-15 00:11:34 +02: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";
homepage = https://wiki.gnome.org/Projects/Rygel;
license = licenses.lgpl21Plus;
maintainers = gnome3.maintainers;
platforms = platforms.linux;
};
}