strawberry: 1.2.18 -> 1.2.21 (#513573)

This commit is contained in:
Lukas Epple
2026-07-25 09:15:01 +00:00
committed by GitHub
2 changed files with 26 additions and 4 deletions
+14 -4
View File
@@ -30,7 +30,6 @@
taglib,
util-linux,
sparsehash,
rapidjson,
# tests
gtest,
@@ -38,15 +37,21 @@
stdenv.mkDerivation (finalAttrs: {
pname = "strawberry";
version = "1.2.18";
version = "1.2.21";
src = fetchFromGitHub {
owner = "jonaski";
repo = "strawberry";
rev = finalAttrs.finalPackage.version;
hash = "sha256-5h1psYJDKnFFgIGZY3ecCttgkR+zuUwa3b/A4keLk9o=";
hash = "sha256-FI+lyVx9x82o2HZ9YysIlPsSAl94YUD8nrHP0HsmO2E=";
};
patches = [
# Link tests against missing gstreamer app
# https://github.com/strawberrymusicplayer/strawberry/pull/2252
./strawberry-tests-link-gst-app.patch
];
# the big strawberry shown in the context menu is *very* much in your face, so use the grey version instead
postPatch = ''
substituteInPlace src/context/contextalbum.cpp \
@@ -71,7 +76,6 @@ stdenv.mkDerivation (finalAttrs: {
sqlite
taglib
sparsehash
rapidjson
]
++ lib.optionals stdenv.hostPlatform.isLinux [
libpulseaudio
@@ -108,6 +112,12 @@ stdenv.mkDerivation (finalAttrs: {
preCheck = ''
# defaults to "xcb" otherwise, which requires a display
export QT_QPA_PLATFORM=offscreen
# The waveformloader test calls QStandardPaths::setTestModeEnabled(true) which
# expects a writable $HOME
# https://doc.qt.io/qt-6/qstandardpaths.html#setTestModeEnabled
# https://github.com/strawberrymusicplayer/strawberry/blob/dc831c03bd5863f133dd9f57eba75dafb27e5cf8/tests/src/waveformloader_test.cpp#L67
export HOME=$(mktemp -d)
'';
doCheck = true;
@@ -0,0 +1,12 @@
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 09cc4660..109396a7 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -77,6 +77,7 @@ macro(add_test_file test_source gui_required)
PkgConfig::GLIB
PkgConfig::GOBJECT
PkgConfig::GSTREAMER_BASE
+ PkgConfig::GSTREAMER_APP
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Concurrent
Qt${QT_VERSION_MAJOR}::Network