3
0
Fork 0
forked from mirrors/nixpkgs

rhythmbox: 3.4.5 → 3.4.6

https://gitlab.gnome.org/GNOME/rhythmbox/-/compare/v3.4.5...v3.4.6

- Build script now compiles schemas automatically.
- Add some initial test dependencies.
This commit is contained in:
Jan Tojnar 2022-07-01 22:40:06 +00:00
parent dbb3c8d6a7
commit c6217958d0

View file

@ -1,7 +1,6 @@
{ stdenv
, lib
, fetchurl
, fetchpatch
, pkg-config
, meson
, ninja
@ -29,29 +28,21 @@
, json-glib
, itstool
, wrapGAppsHook
, desktop-file-utils
, gst_all_1
, gst_plugins ? with gst_all_1; [ gst-plugins-good gst-plugins-ugly ]
, check
}:
stdenv.mkDerivation rec {
pname = "rhythmbox";
version = "3.4.5";
version = "3.4.6";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "l+u8YPN4sibaRbtEbYmQL26hgx4j8Q76ujZVk7HnTyo=";
sha256 = "+VaCEM5V5BHpKcj7leERohHb0ZzEf1ePKRxdMZtesDQ=";
};
patches = [
# Fix stuff linking against rhythmdb not finding libxml headers
# included by rhythmdb.h header.
# https://gitlab.gnome.org/GNOME/rhythmbox/-/merge_requests/147
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/rhythmbox/-/commit/7e8c7b803a45b7badf350132f8e78e3d75b99a21.patch";
sha256 = "5CE/NVlmx7FItNJCVQxx+x0DCYhUkAi/UuksfAiyWBg=";
})
];
nativeBuildInputs = [
pkg-config
meson
@ -60,6 +51,7 @@ stdenv.mkDerivation rec {
glib
itstool
wrapGAppsHook
desktop-file-utils
];
buildInputs = [
@ -95,9 +87,16 @@ stdenv.mkDerivation rec {
libnotify
] ++ gst_plugins;
postInstall = ''
glib-compile-schemas "$out/share/glib-2.0/schemas"
'';
checkInputs = [
check
];
mesonFlags = [
"-Dtests=disabled"
];
# Requires DISPLAY
doCheck = false;
preFixup = ''
gappsWrapperArgs+=(