Skip to content

Commit

Permalink
strawberry: 1.0.21 -> 1.0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Feb 2, 2024
1 parent 1fd120c commit 5fd6c33
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
16 changes: 11 additions & 5 deletions pkgs/applications/audio/strawberry/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
, fftw
, gnutls
, libcdio
, libebur128
, libmtp
, libpthreadstubs
, libtasn1
Expand All @@ -34,21 +35,23 @@
, gst_all_1
, withVlc ? true
, libvlc
, nix-update-script
}:

let
inherit (lib) optionals;
inherit (lib) optionals optionalString;

in
stdenv.mkDerivation rec {
pname = "strawberry";
version = "1.0.21";
version = "1.0.23";

src = fetchFromGitHub {
owner = "jonaski";
repo = pname;
rev = version;
hash = "sha256-McwnYHaw0LYDeHLDQzfqRIYMV2FoiMdHyOL/EE8/esU=";
hash = "sha256-hzZx530HD7R3JOG6cCsoaW9puYkmu7m5lr+EfobKX7o=";
fetchSubmodules = true;
};

# the big strawberry shown in the context menu is *very* much in your face, so use the grey version instead
Expand All @@ -64,6 +67,7 @@ stdenv.mkDerivation rec {
fftw
gnutls
libcdio
libebur128
libidn2
libmtp
libpthreadstubs
Expand All @@ -89,7 +93,7 @@ stdenv.mkDerivation rec {
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
]) ++ lib.optional withVlc libvlc;
]) ++ optionals withVlc [ libvlc ];

nativeBuildInputs = [
cmake
Expand All @@ -101,13 +105,15 @@ stdenv.mkDerivation rec {
util-linux
];

postInstall = lib.optionalString withGstreamer ''
postInstall = optionalString withGstreamer ''
qtWrapperArgs+=(
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
--prefix GIO_EXTRA_MODULES : "${glib-networking.out}/lib/gio/modules"
)
'';

passthru.updateScript = nix-update-script { };

meta = with lib; {
description = "Music player and music collection organizer";
homepage = "https://www.strawberrymusicplayer.org/";
Expand Down
6 changes: 5 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7795,7 +7795,11 @@ with pkgs;

stratis-cli = callPackage ../tools/filesystems/stratis-cli { };

strawberry = libsForQt5.callPackage ../applications/audio/strawberry { };
strawberry-qt5 = libsForQt5.callPackage ../applications/audio/strawberry { };

strawberry-qt6 = qt6Packages.callPackage ../applications/audio/strawberry { };

strawberry = strawberry-qt5;

schleuder = callPackage ../tools/security/schleuder { };

Expand Down

0 comments on commit 5fd6c33

Please sign in to comment.