31 , qtx11extras ? null # doesn't exist in qt6
33 , withGstreamer ? true
42 inherit (lib) optionals optionalString;
45 stdenv.mkDerivation rec {
49 src = fetchFromGitHub {
53 hash = "sha256-yca1BJWhSUVamqSKfvEzU3xbzdR+kwfSs0pyS08oUR0=";
54 fetchSubmodules = true;
57 # the big strawberry shown in the context menu is *very* much in your face, so use the grey version instead
59 substituteInPlace src/context/contextalbum.cpp \
60 --replace pictures/strawberry.png pictures/strawberry-grey.png
82 ] ++ optionals stdenv.hostPlatform.isLinux [
88 ] ++ optionals withGstreamer (with gst_all_1; [
96 ]) ++ optionals withVlc [ libvlc ];
104 ] ++ optionals stdenv.hostPlatform.isLinux [
108 postInstall = optionalString withGstreamer ''
110 --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
111 --prefix GIO_EXTRA_MODULES : "${glib-networking.out}/lib/gio/modules"
115 passthru.updateScript = nix-update-script { };
118 description = "Music player and music collection organizer";
119 homepage = "https://www.strawberrymusicplayer.org/";
120 changelog = "https://raw.githubusercontent.com/jonaski/strawberry/${version}/Changelog";
121 license = licenses.gpl3Only;
122 maintainers = with maintainers; [ peterhoeg ];
123 # upstream says darwin should work but they lack maintainers as of 0.6.6
124 platforms = platforms.linux;
125 mainProgram = "strawberry";