3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/strawberry/default.nix

104 lines
1.9 KiB
Nix
Raw Normal View History

2019-08-28 06:24:53 +01:00
{ mkDerivation
, stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, alsa-lib
2019-08-28 06:24:53 +01:00
, boost
, chromaprint
, fftw
, gnutls
, libcdio
, libmtp
, libpthreadstubs
, libtasn1
, libXdmcp
, ninja
2019-08-28 06:24:53 +01:00
, pcre
, protobuf
, sqlite
, taglib
2021-07-22 01:18:02 +01:00
, libpulseaudio
, libselinux
, libsepol
, p11-kit
, util-linux
2019-08-28 06:24:53 +01:00
, qtbase
, qtx11extras
, qttools
, withGstreamer ? true
2021-07-21 19:12:41 +01:00
, glib-networking
2021-07-22 01:18:02 +01:00
, gst_all_1
2019-08-28 06:24:53 +01:00
, withVlc ? true
2021-07-22 01:18:02 +01:00
, libvlc
2019-08-28 06:24:53 +01:00
}:
mkDerivation rec {
pname = "strawberry";
2021-10-25 06:42:29 +01:00
version = "1.0.0";
2019-08-28 06:24:53 +01:00
src = fetchFromGitHub {
owner = "jonaski";
repo = pname;
rev = version;
2021-10-25 06:42:29 +01:00
sha256 = "sha256-m1BB5OIeCIQuJpxEO1xmb/Z8tzeHF31jYg67OpVWWRM=";
2019-08-28 06:24:53 +01:00
};
buildInputs = [
alsa-lib
2019-08-28 06:24:53 +01:00
boost
chromaprint
fftw
gnutls
libcdio
libmtp
libpthreadstubs
libtasn1
libXdmcp
pcre
protobuf
sqlite
taglib
qtbase
qtx11extras
2021-07-22 01:18:02 +01:00
] ++ lib.optionals stdenv.isLinux [
2019-08-28 06:24:53 +01:00
libpulseaudio
libselinux
libsepol
2019-11-23 20:27:27 +00:00
p11-kit
2021-07-22 01:18:02 +01:00
] ++ lib.optionals withGstreamer (with gst_all_1; [
2021-07-21 19:12:41 +01:00
glib-networking
2019-08-28 06:24:53 +01:00
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
2021-07-22 01:18:02 +01:00
]) ++ lib.optional withVlc libvlc;
2019-08-28 06:24:53 +01:00
nativeBuildInputs = [
2021-07-14 16:34:42 +01:00
cmake
ninja
pkg-config
qttools
] ++ lib.optionals stdenv.isLinux [
util-linux
];
2019-08-28 06:24:53 +01:00
2021-07-21 19:12:41 +01: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-08-28 06:24:53 +01:00
meta = with lib; {
description = "Music player and music collection organizer";
homepage = "https://www.strawberrymusicplayer.org/";
changelog = "https://raw.githubusercontent.com/jonaski/strawberry/${version}/Changelog";
license = licenses.gpl3Only;
2019-08-28 06:24:53 +01: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 06:24:53 +01:00
platforms = platforms.linux;
};
}