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

100 lines
1.8 KiB
Nix
Raw Normal View History

2019-08-28 06:24:53 +01:00
{ mkDerivation
, stdenv
, lib
, fetchFromGitHub
, cmake
, pkgconfig
, alsaLib
, boost
, chromaprint
, fftw
, gnutls
, libcdio
, libmtp
, libpthreadstubs
, libtasn1
, libXdmcp
, ninja
2019-08-28 06:24:53 +01:00
, pcre
, protobuf
, sqlite
, taglib
, libpulseaudio ? null
, libselinux ? null
, libsepol ? null
2019-11-23 20:27:27 +00:00
, p11-kit ? null
2019-08-28 06:24:53 +01:00
, utillinux ? null
, qtbase
, qtx11extras
, qttools
, withGstreamer ? true
, gst_all_1 ? null
, withVlc ? true
, vlc ? null
}:
mkDerivation rec {
pname = "strawberry";
version = "0.6.5";
2019-08-28 06:24:53 +01:00
src = fetchFromGitHub {
owner = "jonaski";
repo = pname;
rev = version;
sha256 = "1kqx0q99n1p5pm6skvqjihz11byhxdid1qw6gqp67dh2na62z1lm";
2019-08-28 06:24:53 +01:00
};
buildInputs = [
alsaLib
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 20:27:27 +00:00
p11-kit
2019-08-28 06:24:53 +01:00
utillinux
]
++ lib.optionals withGstreamer (with gst_all_1; [
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
2019-08-28 06:24:53 +01:00
])
++ lib.optional withVlc vlc;
nativeBuildInputs = [ cmake ninja pkgconfig qttools ];
2019-08-28 06:24:53 +01:00
cmakeFlags = [
"-DUSE_SYSTEM_TAGLIB=ON"
];
postInstall = ''
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
'';
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.gpl3;
2019-08-28 06:24:53 +01:00
maintainers = with maintainers; [ peterhoeg ];
# upstream says darwin should work but they lack maintainers as of 0.6.5
2019-08-28 06:24:53 +01:00
platforms = platforms.linux;
};
}