2021-07-10 07:58:20 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, fetchFromGitLab
|
2016-07-21 18:06:27 +01:00
|
|
|
, python3
|
|
|
|
, perl
|
|
|
|
, perlPackages
|
|
|
|
, gtk3
|
|
|
|
, intltool
|
2019-03-23 04:50:12 +00:00
|
|
|
, libpeas
|
2016-07-21 18:06:27 +01:00
|
|
|
, libsoup
|
2021-07-13 18:48:26 +01:00
|
|
|
, libsecret
|
|
|
|
, libnotify
|
2021-07-10 07:58:20 +01:00
|
|
|
, libdmapsharing
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2018-12-25 22:27:49 +00:00
|
|
|
, totem-pl-parser
|
2016-07-21 18:06:27 +01:00
|
|
|
, tdb
|
2018-02-25 02:23:58 +00:00
|
|
|
, json-glib
|
2016-07-21 18:06:27 +01:00
|
|
|
, itstool
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gst_all_1
|
|
|
|
, gst_plugins ? with gst_all_1; [ gst-plugins-good gst-plugins-ugly ]
|
|
|
|
}:
|
|
|
|
let
|
2021-07-10 07:58:20 +01: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";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2016-07-21 18:06:27 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
2021-07-13 18:48:26 +01:00
|
|
|
pname = "rhythmbox";
|
|
|
|
version = "3.4.4";
|
2016-07-21 18:06:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-13 18:48:26 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-01-30 08:39:02 +00:00
|
|
|
sha256 = "142xcvw4l19jyr5i72nbnrihs953pvrrzcbijjn9dxmxszbv03pf";
|
2016-07-21 18:06:27 +01:00
|
|
|
};
|
|
|
|
|
2018-03-03 00:24:47 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2018-03-03 00:24:47 +00:00
|
|
|
intltool perl perlPackages.XMLParser
|
|
|
|
itstool
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2016-07-21 18:06:27 +01:00
|
|
|
buildInputs = [
|
|
|
|
python3
|
|
|
|
libsoup
|
|
|
|
tdb
|
2018-02-25 02:23:58 +00:00
|
|
|
json-glib
|
2016-07-21 18:06:27 +01:00
|
|
|
|
|
|
|
gtk3
|
2019-03-23 04:50:12 +00:00
|
|
|
libpeas
|
2018-12-25 22:27:49 +00:00
|
|
|
totem-pl-parser
|
2021-05-07 22:18:14 +01:00
|
|
|
gnome.adwaita-icon-theme
|
2016-07-21 18:06:27 +01:00
|
|
|
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
2021-07-13 18:48:26 +01:00
|
|
|
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 07:58:20 +01:00
|
|
|
|
|
|
|
libdmapsharing_3 # necessary for daap support
|
2021-07-13 18:48:26 +01:00
|
|
|
libsecret
|
|
|
|
libnotify
|
2016-07-21 18:06:27 +01:00
|
|
|
] ++ gst_plugins;
|
|
|
|
|
2021-07-13 18:48:26 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-daap"
|
|
|
|
"--enable-libnotify"
|
|
|
|
"--with-libsecret"
|
|
|
|
];
|
2021-07-10 07:58:20 +01:00
|
|
|
|
2016-07-21 18:06:27 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-03-03 00:24:47 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 00:24:47 +00:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Rhythmbox";
|
2016-07-21 18:06:27 +01:00
|
|
|
description = "A music playing application for GNOME";
|
2021-07-13 18:48:26 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2016-07-21 18:06:27 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.rasendubi ];
|
|
|
|
};
|
|
|
|
}
|