2019-08-28 05:24:53 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2019-08-28 05:24:53 +00:00
|
|
|
, boost
|
|
|
|
, chromaprint
|
|
|
|
, fftw
|
|
|
|
, gnutls
|
|
|
|
, libcdio
|
|
|
|
, libmtp
|
|
|
|
, libpthreadstubs
|
|
|
|
, libtasn1
|
|
|
|
, libXdmcp
|
2019-09-06 05:01:03 +00:00
|
|
|
, ninja
|
2019-08-28 05:24:53 +00:00
|
|
|
, pcre
|
|
|
|
, protobuf
|
|
|
|
, sqlite
|
|
|
|
, taglib
|
2022-03-06 01:01:05 +00:00
|
|
|
, libgpod
|
2021-07-22 00:18:02 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, libselinux
|
|
|
|
, libsepol
|
|
|
|
, p11-kit
|
|
|
|
, util-linux
|
2019-08-28 05:24:53 +00:00
|
|
|
, qtbase
|
|
|
|
, qtx11extras
|
|
|
|
, qttools
|
|
|
|
, withGstreamer ? true
|
2021-07-21 18:12:41 +00:00
|
|
|
, glib-networking
|
2021-07-22 00:18:02 +00:00
|
|
|
, gst_all_1
|
2019-08-28 05:24:53 +00:00
|
|
|
, withVlc ? true
|
2021-07-22 00:18:02 +00:00
|
|
|
, libvlc
|
2019-08-28 05:24:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "strawberry";
|
2022-03-28 23:47:04 +00:00
|
|
|
version = "1.0.3";
|
2019-08-28 05:24:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jonaski";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-03-28 23:47:04 +00:00
|
|
|
sha256 = "sha256-wa7r6maHAgCTD/TFjqtMuoRt1BqQ38T8KpbMUOoS2ZE=";
|
2019-08-28 05:24:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib
|
2019-08-28 05:24:53 +00:00
|
|
|
boost
|
|
|
|
chromaprint
|
|
|
|
fftw
|
|
|
|
gnutls
|
|
|
|
libcdio
|
|
|
|
libmtp
|
|
|
|
libpthreadstubs
|
|
|
|
libtasn1
|
|
|
|
libXdmcp
|
|
|
|
pcre
|
|
|
|
protobuf
|
|
|
|
sqlite
|
|
|
|
taglib
|
|
|
|
qtbase
|
|
|
|
qtx11extras
|
2021-07-22 00:18:02 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
2022-03-06 01:01:05 +00:00
|
|
|
libgpod
|
2019-08-28 05:24:53 +00:00
|
|
|
libpulseaudio
|
|
|
|
libselinux
|
|
|
|
libsepol
|
2019-11-23 20:27:27 +00:00
|
|
|
p11-kit
|
2021-07-22 00:18:02 +00:00
|
|
|
] ++ lib.optionals withGstreamer (with gst_all_1; [
|
2021-07-21 18:12:41 +00:00
|
|
|
glib-networking
|
2019-08-28 05:24:53 +00:00
|
|
|
gstreamer
|
2022-04-18 15:47:59 +00:00
|
|
|
gst-libav
|
2019-08-28 05:24:53 +00:00
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
2022-01-10 20:00:05 +00:00
|
|
|
gst-plugins-bad
|
2019-09-06 05:01:03 +00:00
|
|
|
gst-plugins-ugly
|
2021-07-22 00:18:02 +00:00
|
|
|
]) ++ lib.optional withVlc libvlc;
|
2019-08-28 05:24:53 +00:00
|
|
|
|
2021-03-30 15:17:12 +00:00
|
|
|
nativeBuildInputs = [
|
2021-07-14 15:34:42 +00:00
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
qttools
|
2021-03-30 15:17:12 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
util-linux
|
|
|
|
];
|
2019-08-28 05:24:53 +00:00
|
|
|
|
2021-07-21 18:12:41 +00:00
|
|
|
postInstall = lib.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"
|
|
|
|
)
|
2019-09-06 05:01:03 +00:00
|
|
|
'';
|
|
|
|
|
2019-08-28 05:24:53 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Music player and music collection organizer";
|
2019-10-24 15:34:39 +00:00
|
|
|
homepage = "https://www.strawberrymusicplayer.org/";
|
|
|
|
changelog = "https://raw.githubusercontent.com/jonaski/strawberry/${version}/Changelog";
|
2021-03-30 15:17:12 +00:00
|
|
|
license = licenses.gpl3Only;
|
2019-08-28 05:24:53 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2019-11-29 15:29:40 +00:00
|
|
|
# upstream says darwin should work but they lack maintainers as of 0.6.6
|
2019-08-28 05:24:53 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|