rhythmbox: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 01:24:47 +01:00
parent a081e8efe6
commit 1d09719361
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -14,29 +14,28 @@
, gst_plugins ? with gst_all_1; [ gst-plugins-good gst-plugins-ugly ]
}:
let
version = "${major}.${minor}";
major = "3.2";
minor = "1";
pname = "rhythmbox";
version = "3.2.1";
in stdenv.mkDerivation rec {
name = "rhythmbox-${version}";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/rhythmbox/${major}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0f3radhlji7rxl760yl2vm49fvfslympxrpm8497acbmbd7wlhxz";
};
nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [
pkgconfig
intltool perl perlPackages.XMLParser
itstool
wrapGAppsHook
];
buildInputs = [
python3
perl
perlPackages.XMLParser
intltool
libsoup
tdb
json-glib
itstool
gtk3
gnome3.libpeas
@ -45,12 +44,17 @@ in stdenv.mkDerivation rec {
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
wrapGAppsHook
] ++ gst_plugins;
enableParallelBuilding = true;
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
versionPolicy = "none";
};
};
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/Rhythmbox;
description = "A music playing application for GNOME";