3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome/core/rygel/default.nix

109 lines
1.9 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, meson
, ninja
2021-01-17 02:21:50 +00:00
, pkg-config
, 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
, gnome
}:
2018-08-14 23:11:34 +01:00
stdenv.mkDerivation rec {
2018-08-14 23:11:34 +01:00
pname = "rygel";
2022-01-11 04:11:15 +00:00
version = "0.40.3";
2018-08-14 23:11:34 +01:00
# TODO: split out lib
outputs = [ "out" "dev" ];
2018-08-14 23:11:34 +01:00
src = fetchurl {
2021-01-15 13:21:58 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2022-01-11 04:11:15 +00:00
sha256 = "zwvjUQnLVw5c8K/lltha7Lmw6TWYYVNTArt7YE2vUdc=";
2018-08-14 23:11:34 +01:00
};
2021-10-02 00:08:07 +01:00
patches = [
./add-option-for-installation-sysconfdir.patch
];
2018-08-14 23:11:34 +01:00
nativeBuildInputs = [
meson
ninja
2021-01-17 02:21:50 +00:00
pkg-config
vala
gettext
libxml2
gobject-introspection
wrapGAppsHook
python3
2018-08-14 23:11:34 +01:00
];
2018-08-14 23:11:34 +01:00
buildInputs = [
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; [
gstreamer
gst-editing-services
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
2018-08-14 23:11:34 +01:00
]);
mesonFlags = [
"-Dsystemd-user-units-dir=${placeholder "out"}/lib/systemd/user"
"-Dapi-docs=false"
2018-08-14 23:11:34 +01:00
"--sysconfdir=/etc"
"-Dsysconfdir_install=${placeholder "out"}/etc"
2018-08-14 23:11:34 +01:00
];
doCheck = true;
postPatch = ''
patchShebangs data/xml/process-xml.py
'';
2018-08-14 23:11:34 +01:00
passthru = {
updateScript = gnome.updateScript {
2018-08-14 23:11:34 +01:00
packageName = pname;
attrPath = "gnome.${pname}";
versionPolicy = "odd-unstable";
2018-08-14 23:11:34 +01:00
};
};
meta = with lib; {
2018-08-14 23:11:34 +01:00
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";
2018-08-14 23:11:34 +01:00
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members;
2018-08-14 23:11:34 +01:00
platforms = platforms.linux;
};
}