nixpkgs/pkgs/by-name/hq/hqplayerd/rygel.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

116 lines
2.0 KiB
Nix

{
lib,
stdenv,
fetchurl,
meson,
ninja,
pkg-config,
vala,
gettext,
libxml2,
gobject-introspection,
wrapGAppsHook3,
python3,
glib,
gssdp,
gupnp,
gupnp-av,
gupnp-dlna,
gst_all_1,
libgee,
libsoup_2_4,
gtk3,
libmediaart,
sqlite,
systemd,
tinysparql,
shared-mime-info,
gnome,
}:
stdenv.mkDerivation rec {
pname = "rygel";
version = "0.40.4";
# TODO: split out lib
outputs = [
"out"
"dev"
];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "c22K2+hhX2y8j8//mEXcmF/RDhZinaI2tLUtvt8KNIs=";
};
patches = [
./add-option-for-installation-sysconfdir.patch
];
nativeBuildInputs = [
meson
ninja
pkg-config
vala
gettext
libxml2
gobject-introspection
wrapGAppsHook3
python3
];
buildInputs =
[
glib
gssdp
gupnp
gupnp-av
gupnp-dlna
libgee
libsoup_2_4
gtk3
libmediaart
sqlite
systemd
tinysparql
shared-mime-info
]
++ (with gst_all_1; [
gstreamer
gst-editing-services
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
]);
mesonFlags = [
"-Dsystemd-user-units-dir=${placeholder "out"}/lib/systemd/user"
"-Dapi-docs=false"
"--sysconfdir=/etc"
"-Dsysconfdir_install=${placeholder "out"}/etc"
];
doCheck = true;
postPatch = ''
patchShebangs data/xml/process-xml.py
'';
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
attrPath = "gnome.${pname}";
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
description = "Home media solution (UPnP AV MediaServer) that allows you to easily share audio, video and pictures to other devices";
homepage = "https://gitlab.gnome.org/GNOME/rygel";
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members;
platforms = platforms.linux;
};
}