2021-07-14 22:03:04 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, fetchFromGitLab
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3
|
|
|
|
, perl
|
|
|
|
, perlPackages
|
|
|
|
, gtk3
|
|
|
|
, intltool
|
|
|
|
, libpeas
|
|
|
|
, libsoup
|
2021-07-14 22:03:04 +00:00
|
|
|
, libdmapsharing
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, totem-pl-parser
|
|
|
|
, tdb
|
|
|
|
, json-glib
|
|
|
|
, itstool
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gst_all_1
|
|
|
|
, gst_plugins ? with gst_all_1; [ gst-plugins-good gst-plugins-ugly ]
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
pname = "rhythmbox";
|
|
|
|
version = "3.4.4";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
# The API version of libdmapsharing required by rhythmbox 3.4.4 is 3.0.
|
|
|
|
|
|
|
|
# This PR would solve the issue:
|
|
|
|
# https://gitlab.gnome.org/GNOME/rhythmbox/-/merge_requests/12
|
|
|
|
# Unfortunately applying this patch produces a rhythmbox which
|
|
|
|
# cannot fetch data from DAAP shares.
|
|
|
|
|
|
|
|
libdmapsharing_3 = libdmapsharing.overrideAttrs (old: rec {
|
|
|
|
version = "2.9.41";
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = old.pname;
|
|
|
|
rev = "${lib.toUpper old.pname}_${lib.replaceStrings ["."] ["_"] version}";
|
|
|
|
sha256 = "05kvrzf0cp3mskdy6iv7zqq24qdczl800q2dn1h4bk3d9wchgm4p";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "142xcvw4l19jyr5i72nbnrihs953pvrrzcbijjn9dxmxszbv03pf";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
intltool perl perlPackages.XMLParser
|
|
|
|
itstool
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
python3
|
|
|
|
libsoup
|
|
|
|
tdb
|
|
|
|
json-glib
|
|
|
|
|
|
|
|
gtk3
|
|
|
|
libpeas
|
|
|
|
totem-pl-parser
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
libdmapsharing_3 # necessary for daap support
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ gst_plugins;
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
configureFlags = [ "--enable-daap" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Rhythmbox";
|
|
|
|
description = "A music playing application for GNOME";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.rasendubi ];
|
|
|
|
};
|
|
|
|
}
|