nixpkgs/pkgs/applications/audio/rhythmbox/default.nix

122 lines
2.0 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchurl
, pkg-config
, meson
, ninja
, fetchFromGitLab
2016-07-21 17:06:27 +00:00
, python3
, vala
, glib
2016-07-21 17:06:27 +00:00
, gtk3
2019-03-23 04:50:12 +00:00
, libpeas
2016-07-21 17:06:27 +00:00
, libsoup
, libxml2
, libsecret
, libnotify
2021-07-10 06:58:20 +00:00
, libdmapsharing
, gnome
, gobject-introspection
, totem-pl-parser
, libgudev
, libgpod
, libmtp
, lirc
, brasero
, grilo
2016-07-21 17:06:27 +00:00
, tdb
, json-glib
2016-07-21 17:06:27 +00:00
, itstool
, wrapGAppsHook
, desktop-file-utils
2016-07-21 17:06:27 +00:00
, gst_all_1
, gst_plugins ? with gst_all_1; [ gst-plugins-good gst-plugins-ugly ]
, check
2016-07-21 17:06:27 +00:00
}:
2021-07-10 06:58:20 +00:00
stdenv.mkDerivation rec {
pname = "rhythmbox";
version = "3.4.6";
2016-07-21 17:06:27 +00:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "+VaCEM5V5BHpKcj7leERohHb0ZzEf1ePKRxdMZtesDQ=";
2016-07-21 17:06:27 +00:00
};
2018-03-03 00:24:47 +00:00
nativeBuildInputs = [
pkg-config
meson
ninja
vala
glib
2018-03-03 00:24:47 +00:00
itstool
wrapGAppsHook
desktop-file-utils
2018-03-03 00:24:47 +00:00
];
2016-07-21 17:06:27 +00:00
buildInputs = [
python3
libsoup
libxml2
2016-07-21 17:06:27 +00:00
tdb
json-glib
2016-07-21 17:06:27 +00:00
glib
2016-07-21 17:06:27 +00:00
gtk3
2019-03-23 04:50:12 +00:00
libpeas
totem-pl-parser
libgudev
libgpod
libmtp
lirc
brasero
grilo
2016-07-21 17:06:27 +00:00
gobject-introspection
python3.pkgs.pygobject3
2016-07-21 17:06:27 +00:00
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-libav
2021-07-10 06:58:20 +00:00
libdmapsharing # for daap support
libsecret
libnotify
2016-07-21 17:06:27 +00:00
] ++ gst_plugins;
nativeCheckInputs = [
check
];
mesonFlags = [
"-Dtests=disabled"
];
# Requires DISPLAY
doCheck = false;
2021-07-10 06:58:20 +00:00
preFixup = ''
gappsWrapperArgs+=(
--prefix PYTHONPATH : "${python3.pkgs.pygobject3}/${python3.sitePackages}:$out/lib/rhythmbox/plugins/"
)
'';
2018-03-03 00:24:47 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-03 00:24:47 +00:00
packageName = pname;
versionPolicy = "none";
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Rhythmbox";
2016-07-21 17:06:27 +00:00
description = "A music playing application for GNOME";
license = licenses.gpl2Plus;
2016-07-21 17:06:27 +00:00
platforms = platforms.linux;
maintainers = [ maintainers.rasendubi ];
};
}