2021-05-05 15:19:59 +00: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 01:25:00 +00:00
|
|
|
, qca-qt5
|
2021-05-05 15:19:59 +00:00
|
|
|
, pkg-config
|
|
|
|
, sparsehash
|
|
|
|
, config
|
|
|
|
, makeWrapper
|
|
|
|
, gst_plugins
|
2021-05-05 15:20:19 +00:00
|
|
|
|
|
|
|
, util-linux
|
|
|
|
, libunwind
|
|
|
|
, libselinux
|
|
|
|
, elfutils
|
|
|
|
, libsepol
|
|
|
|
, orc
|
|
|
|
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2021-05-05 15:19:59 +00:00
|
|
|
}:
|
2015-04-28 04:18:00 +00:00
|
|
|
|
2015-05-02 18:30:53 +00:00
|
|
|
let
|
2017-03-16 23:47:37 +00: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-29 22:10:42 +00:00
|
|
|
in mkDerivation {
|
|
|
|
pname = "clementine";
|
2022-04-25 12:13:17 +00:00
|
|
|
version = "unstable-2022-04-11";
|
2015-04-28 04:18:00 +00:00
|
|
|
|
2019-01-27 12:03:57 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "clementine-player";
|
|
|
|
repo = "Clementine";
|
2022-04-25 12:13:17 +00:00
|
|
|
rev = "250024e117fbe5fae7c62b9c8e655d66412a6ed7";
|
|
|
|
sha256 = "06fcbs3wig3mh711iypyj49qm5246f7qhvgvv8brqfrd8cqyh6qf";
|
2015-05-05 02:07:56 +00:00
|
|
|
};
|
2015-04-28 04:18:00 +00:00
|
|
|
|
2021-05-05 15:19:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
makeWrapper
|
2021-05-05 15:20:19 +00:00
|
|
|
|
|
|
|
util-linux
|
|
|
|
libunwind
|
|
|
|
libselinux
|
|
|
|
elfutils
|
|
|
|
libsepol
|
|
|
|
orc
|
2021-05-05 15:19:59 +00:00
|
|
|
];
|
2017-08-28 10:52:18 +00:00
|
|
|
|
2015-05-05 02:07:56 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost
|
2017-08-03 02:54:50 +00:00
|
|
|
chromaprint
|
2015-05-05 02:07:56 +00:00
|
|
|
fftw
|
|
|
|
gettext
|
|
|
|
glew
|
2017-08-03 02:54:50 +00:00
|
|
|
gst_all_1.gst-plugins-base
|
2022-05-12 11:58:51 +00:00
|
|
|
gst_all_1.gst-plugins-bad
|
2017-08-03 02:54:50 +00:00
|
|
|
gst_all_1.gstreamer
|
2015-05-05 02:07:56 +00:00
|
|
|
gvfs
|
|
|
|
liblastfm
|
2017-08-03 02:54:50 +00:00
|
|
|
libpulseaudio
|
|
|
|
pcre
|
2017-08-28 10:52:18 +00:00
|
|
|
projectm
|
2015-05-05 02:07:56 +00:00
|
|
|
protobuf
|
2022-05-26 01:25:00 +00:00
|
|
|
qca-qt5
|
2015-05-05 02:07:56 +00:00
|
|
|
qjson
|
2020-06-08 17:19:18 +00:00
|
|
|
qtbase
|
|
|
|
qtx11extras
|
2021-05-04 11:20:40 +00:00
|
|
|
qttools
|
2015-05-05 02:07:56 +00:00
|
|
|
sqlite
|
|
|
|
taglib
|
2021-05-05 15:20:19 +00:00
|
|
|
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib
|
2017-03-16 23:47:37 +00:00
|
|
|
]
|
2022-05-29 22:10:42 +00:00
|
|
|
# gst_plugins needed for setup-hooks
|
|
|
|
++ gst_plugins
|
2021-05-05 15:19:59 +00:00
|
|
|
++ lib.optionals (withIpod) [ libgpod libplist usbmuxd ]
|
|
|
|
++ lib.optionals (withMTP) [ libmtp ]
|
|
|
|
++ lib.optionals (withCD) [ libcdio ]
|
|
|
|
++ lib.optionals (withCloud) [ sparsehash ];
|
2015-04-28 04:18:00 +00:00
|
|
|
|
2017-09-08 18:24:14 +00: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-29 22:10:42 +00:00
|
|
|
preConfigure = ''
|
|
|
|
rm -rf ext/{,lib}clementine-spotifyblob
|
|
|
|
'';
|
2018-04-06 15:16:31 +00:00
|
|
|
|
2022-05-29 22:10:42 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_SYSTEM_PROJECTM=ON"
|
|
|
|
"-DSPOTIFY_BLOB=OFF"
|
|
|
|
];
|
2018-04-06 15:16:31 +00:00
|
|
|
|
2022-05-29 22:10:42 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/clementine \
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
|
|
|
'';
|
2021-01-03 09:43:56 +00:00
|
|
|
|
2022-05-29 22:10:42 +00: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 04:18:00 +00:00
|
|
|
};
|
2022-05-29 22:10:42 +00:00
|
|
|
}
|