Skip to content

Commit

Permalink
rhythmbox: 3.4.5 → 3.4.6
Browse files Browse the repository at this point in the history
https://gitlab.gnome.org/GNOME/rhythmbox/-/compare/v3.4.5...v3.4.6

- Build script now compiles schemas automatically.
- Add some initial test dependencies.
  • Loading branch information
jtojnar committed Jul 2, 2022
1 parent dbb3c8d commit c621795
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions pkgs/applications/audio/rhythmbox/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ stdenv
, lib
, fetchurl
, fetchpatch
, pkg-config
, meson
, ninja
Expand Down Expand Up @@ -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
Expand All @@ -60,6 +51,7 @@ stdenv.mkDerivation rec {
glib
itstool
wrapGAppsHook
desktop-file-utils
];

buildInputs = [
Expand Down Expand Up @@ -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+=(
Expand Down

0 comments on commit c621795

Please sign in to comment.