nixpkgs/pkgs/applications/audio/strawberry/default.nix

99 lines
1.8 KiB
Nix
Raw Normal View History

2019-08-28 07:24:53 +02:00
{ mkDerivation
, stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, alsa-lib
2019-08-28 07:24:53 +02:00
, boost
, chromaprint
, fftw
, gnutls
, libcdio
, libmtp
, libpthreadstubs
, libtasn1
, libXdmcp
, ninja
2019-08-28 07:24:53 +02:00
, pcre
, protobuf
, sqlite
, taglib
, libpulseaudio ? null
, libselinux ? null
, libsepol ? null
2019-11-23 21:27:27 +01:00
, p11-kit ? null
2020-11-24 16:29:28 +01:00
, util-linux ? null
2019-08-28 07:24:53 +02:00
, qtbase
, qtx11extras
, qttools
, withGstreamer ? true
, gst_all_1 ? null
, withVlc ? true
2020-09-25 17:53:28 +02:00
, libvlc ? null
2019-08-28 07:24:53 +02:00
}:
mkDerivation rec {
pname = "strawberry";
version = "0.9.2";
2019-08-28 07:24:53 +02:00
src = fetchFromGitHub {
owner = "jonaski";
repo = pname;
rev = version;
sha256 = "sha256:0d9asg21j9ai23sb35cimws8bd8fsnpha777rgscraa7i09q0rx2";
2019-08-28 07:24:53 +02:00
};
buildInputs = [
alsa-lib
2019-08-28 07:24:53 +02:00
boost
chromaprint
fftw
gnutls
libcdio
libmtp
libpthreadstubs
libtasn1
libXdmcp
pcre
protobuf
sqlite
taglib
qtbase
qtx11extras
]
++ lib.optionals stdenv.isLinux [
libpulseaudio
libselinux
libsepol
2019-11-23 21:27:27 +01:00
p11-kit
2019-08-28 07:24:53 +02:00
]
++ lib.optionals withGstreamer (with gst_all_1; [
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
2019-08-28 07:24:53 +02:00
])
2020-09-25 17:53:28 +02:00
++ lib.optional withVlc libvlc;
2019-08-28 07:24:53 +02:00
nativeBuildInputs = [
cmake ninja pkg-config qttools
] ++ lib.optionals stdenv.isLinux [
util-linux
];
2019-08-28 07:24:53 +02:00
postInstall = ''
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
'';
2019-08-28 07:24:53 +02: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 07:24:53 +02:00
maintainers = with maintainers; [ peterhoeg ];
2019-11-29 16:29:40 +01:00
# upstream says darwin should work but they lack maintainers as of 0.6.6
2019-08-28 07:24:53 +02:00
platforms = platforms.linux;
};
}