2021-05-05 17:19:59 +02:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, boost
|
|
|
|
, cmake
|
|
|
|
, chromaprint
|
|
|
|
, gettext
|
|
|
|
, gst_all_1
|
|
|
|
, liblastfm
|
|
|
|
, qtbase
|
|
|
|
, qtx11extras
|
|
|
|
, qttools
|
|
|
|
, taglib
|
|
|
|
, fftw
|
|
|
|
, glew
|
|
|
|
, qjson
|
|
|
|
, sqlite
|
|
|
|
, libgpod
|
|
|
|
, libplist
|
|
|
|
, usbmuxd
|
|
|
|
, libmtp
|
|
|
|
, libpulseaudio
|
|
|
|
, gvfs
|
|
|
|
, libcdio
|
|
|
|
, pcre
|
|
|
|
, projectm
|
|
|
|
, protobuf
|
2022-05-26 03:25:00 +02:00
|
|
|
, qca-qt5
|
2021-05-05 17:19:59 +02:00
|
|
|
, pkg-config
|
|
|
|
, sparsehash
|
|
|
|
, config
|
|
|
|
, makeWrapper
|
|
|
|
, gst_plugins
|
2021-05-05 17:20:19 +02:00
|
|
|
|
|
|
|
, util-linux
|
|
|
|
, libunwind
|
|
|
|
, libselinux
|
|
|
|
, elfutils
|
|
|
|
, libsepol
|
|
|
|
, orc
|
|
|
|
|
2021-06-10 04:57:09 +02:00
|
|
|
, alsa-lib
|
2021-05-05 17:19:59 +02:00
|
|
|
}:
|
2015-04-28 06:18:00 +02:00
|
|
|
|
2015-05-02 20:30:53 +02:00
|
|
|
let
|
2017-03-17 00:47:37 +01:00
|
|
|
withIpod = config.clementine.ipod or false;
|
|
|
|
withMTP = config.clementine.mtp or true;
|
|
|
|
withCD = config.clementine.cd or true;
|
|
|
|
withCloud = config.clementine.cloud or true;
|
2022-05-30 00:10:42 +02:00
|
|
|
in mkDerivation {
|
|
|
|
pname = "clementine";
|
2022-04-25 14:13:17 +02:00
|
|
|
version = "unstable-2022-04-11";
|
2015-04-28 06:18:00 +02:00
|
|
|
|
2019-01-27 13:03:57 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "clementine-player";
|
|
|
|
repo = "Clementine";
|
2022-04-25 14:13:17 +02:00
|
|
|
rev = "250024e117fbe5fae7c62b9c8e655d66412a6ed7";
|
|
|
|
sha256 = "06fcbs3wig3mh711iypyj49qm5246f7qhvgvv8brqfrd8cqyh6qf";
|
2015-05-05 04:07:56 +02:00
|
|
|
};
|
2015-04-28 06:18:00 +02:00
|
|
|
|
2021-05-05 17:19:59 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
makeWrapper
|
2021-05-05 17:20:19 +02:00
|
|
|
|
|
|
|
util-linux
|
|
|
|
libunwind
|
|
|
|
libselinux
|
|
|
|
elfutils
|
|
|
|
libsepol
|
|
|
|
orc
|
2021-05-05 17:19:59 +02:00
|
|
|
];
|
2017-08-28 12:52:18 +02:00
|
|
|
|
2015-05-05 04:07:56 +02:00
|
|
|
buildInputs = [
|
|
|
|
boost
|
2017-08-03 04:54:50 +02:00
|
|
|
chromaprint
|
2015-05-05 04:07:56 +02:00
|
|
|
fftw
|
|
|
|
gettext
|
|
|
|
glew
|
2017-08-03 04:54:50 +02:00
|
|
|
gst_all_1.gst-plugins-base
|
2022-05-12 13:58:51 +02:00
|
|
|
gst_all_1.gst-plugins-bad
|
2017-08-03 04:54:50 +02:00
|
|
|
gst_all_1.gstreamer
|
2015-05-05 04:07:56 +02:00
|
|
|
gvfs
|
|
|
|
liblastfm
|
2017-08-03 04:54:50 +02:00
|
|
|
libpulseaudio
|
|
|
|
pcre
|
2017-08-28 12:52:18 +02:00
|
|
|
projectm
|
2015-05-05 04:07:56 +02:00
|
|
|
protobuf
|
2022-05-26 03:25:00 +02:00
|
|
|
qca-qt5
|
2015-05-05 04:07:56 +02:00
|
|
|
qjson
|
2020-06-08 19:19:18 +02:00
|
|
|
qtbase
|
|
|
|
qtx11extras
|
2021-05-04 13:20:40 +02:00
|
|
|
qttools
|
2015-05-05 04:07:56 +02:00
|
|
|
sqlite
|
|
|
|
taglib
|
2021-05-05 17:20:19 +02:00
|
|
|
|
2021-06-10 04:57:09 +02:00
|
|
|
alsa-lib
|
2017-03-17 00:47:37 +01:00
|
|
|
]
|
2022-05-30 00:10:42 +02:00
|
|
|
# gst_plugins needed for setup-hooks
|
|
|
|
++ gst_plugins
|
2021-05-05 17:19:59 +02:00
|
|
|
++ lib.optionals (withIpod) [ libgpod libplist usbmuxd ]
|
|
|
|
++ lib.optionals (withMTP) [ libmtp ]
|
|
|
|
++ lib.optionals (withCD) [ libcdio ]
|
|
|
|
++ lib.optionals (withCloud) [ sparsehash ];
|
2015-04-28 06:18:00 +02:00
|
|
|
|
2017-09-08 20:24:14 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -i src/CMakeLists.txt \
|
|
|
|
-e 's,-Werror,,g' \
|
|
|
|
-e 's,-Wno-unknown-warning-option,,g' \
|
|
|
|
-e 's,-Wno-unused-private-field,,g'
|
|
|
|
sed -i CMakeLists.txt \
|
|
|
|
-e 's,libprotobuf.a,protobuf,g'
|
|
|
|
'';
|
|
|
|
|
2022-05-30 00:10:42 +02:00
|
|
|
preConfigure = ''
|
|
|
|
rm -rf ext/{,lib}clementine-spotifyblob
|
|
|
|
'';
|
2018-04-06 17:16:31 +02:00
|
|
|
|
2022-05-30 00:10:42 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_SYSTEM_PROJECTM=ON"
|
|
|
|
"-DSPOTIFY_BLOB=OFF"
|
|
|
|
];
|
2018-04-06 17:16:31 +02:00
|
|
|
|
2022-05-30 00:10:42 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/clementine \
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
|
|
|
'';
|
2021-01-03 10:43:56 +01:00
|
|
|
|
2022-05-30 00:10:42 +02:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.clementine-player.org";
|
|
|
|
description = "A multiplatform music player";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.ttuegel ];
|
2015-04-28 06:18:00 +02:00
|
|
|
};
|
2022-05-30 00:10:42 +02:00
|
|
|
}
|