mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
a701093bd4
* strawberry: 0.6.3 -> 0.6.5 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/strawberry/versions * strawberry: add meta.homepage and meta.changelog
100 lines
1.8 KiB
Nix
100 lines
1.8 KiB
Nix
{ mkDerivation
|
|
, stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkgconfig
|
|
, alsaLib
|
|
, boost
|
|
, chromaprint
|
|
, fftw
|
|
, gnutls
|
|
, libcdio
|
|
, libmtp
|
|
, libpthreadstubs
|
|
, libtasn1
|
|
, libXdmcp
|
|
, ninja
|
|
, pcre
|
|
, protobuf
|
|
, sqlite
|
|
, taglib
|
|
, libpulseaudio ? null
|
|
, libselinux ? null
|
|
, libsepol ? null
|
|
, p11_kit ? null
|
|
, utillinux ? null
|
|
, qtbase
|
|
, qtx11extras
|
|
, qttools
|
|
, withGstreamer ? true
|
|
, gst_all_1 ? null
|
|
, withVlc ? true
|
|
, vlc ? null
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "strawberry";
|
|
version = "0.6.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jonaski";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1kqx0q99n1p5pm6skvqjihz11byhxdid1qw6gqp67dh2na62z1lm";
|
|
};
|
|
|
|
buildInputs = [
|
|
alsaLib
|
|
boost
|
|
chromaprint
|
|
fftw
|
|
gnutls
|
|
libcdio
|
|
libmtp
|
|
libpthreadstubs
|
|
libtasn1
|
|
libXdmcp
|
|
pcre
|
|
protobuf
|
|
sqlite
|
|
taglib
|
|
qtbase
|
|
qtx11extras
|
|
]
|
|
++ lib.optionals stdenv.isLinux [
|
|
libpulseaudio
|
|
libselinux
|
|
libsepol
|
|
p11_kit
|
|
utillinux
|
|
]
|
|
++ lib.optionals withGstreamer (with gst_all_1; [
|
|
gstreamer
|
|
gst-plugins-base
|
|
gst-plugins-good
|
|
gst-plugins-ugly
|
|
])
|
|
++ lib.optional withVlc vlc;
|
|
|
|
nativeBuildInputs = [ cmake ninja pkgconfig qttools ];
|
|
|
|
cmakeFlags = [
|
|
"-DUSE_SYSTEM_TAGLIB=ON"
|
|
];
|
|
|
|
postInstall = ''
|
|
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
|
'';
|
|
|
|
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;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
# upstream says darwin should work but they lack maintainers as of 0.6.5
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|