2013-12-31 13:51:11 +00:00
|
|
|
{ stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst_plugins_base
|
2015-01-19 17:04:23 +00:00
|
|
|
, gst_plugins_good, gst_plugins_bad, gst_plugins_ugly, gst_ffmpeg
|
2013-12-31 13:51:11 +00:00
|
|
|
, liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist
|
|
|
|
, usbmuxd, libmtp, gvfs, libcdio, protobuf, libspotify, qca2, pkgconfig
|
2015-01-19 17:04:23 +00:00
|
|
|
, sparsehash, config, makeWrapper }:
|
2013-12-31 13:51:11 +00:00
|
|
|
|
2014-05-25 00:25:04 +01:00
|
|
|
let withSpotify = config.clementine.spotify or false;
|
|
|
|
in
|
2013-12-31 13:51:11 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-08-04 13:47:52 +01:00
|
|
|
name = "clementine-1.2.3";
|
2013-12-31 13:51:11 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-04 13:47:52 +01:00
|
|
|
url = https://github.com/clementine-player/Clementine/archive/1.2.3.tar.gz;
|
|
|
|
sha256 = "1gx1109i4pylz6x7gvp4rdzc6dvh0w6in6hfbygw01d08l26bxbx";
|
2013-12-31 13:51:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./clementine-1.2.1-include-paths.patch ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
cmake
|
|
|
|
fftw
|
|
|
|
gettext
|
|
|
|
glew
|
|
|
|
gst_plugins_base
|
2015-01-19 17:04:23 +00:00
|
|
|
gst_plugins_good
|
|
|
|
gst_plugins_ugly
|
|
|
|
gst_ffmpeg
|
2013-12-31 13:51:11 +00:00
|
|
|
gstreamer
|
|
|
|
gvfs
|
|
|
|
libcdio
|
|
|
|
libgpod
|
|
|
|
liblastfm
|
|
|
|
libmtp
|
|
|
|
libplist
|
2015-01-19 17:04:23 +00:00
|
|
|
makeWrapper
|
2013-12-31 13:51:11 +00:00
|
|
|
pkgconfig
|
|
|
|
protobuf
|
|
|
|
qca2
|
|
|
|
qjson
|
|
|
|
qt4
|
|
|
|
sparsehash
|
|
|
|
sqlite
|
|
|
|
taglib
|
|
|
|
usbmuxd
|
2014-05-25 00:25:04 +01:00
|
|
|
] ++ stdenv.lib.optional withSpotify libspotify;
|
2013-12-31 13:51:11 +00:00
|
|
|
|
2014-08-04 13:47:52 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-01-19 17:04:23 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/clementine \
|
|
|
|
--set GST_PLUGIN_SYSTEM_PATH "$GST_PLUGIN_SYSTEM_PATH"
|
|
|
|
'';
|
|
|
|
|
2013-12-31 13:51:11 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://www.clementine-player.org";
|
|
|
|
description = "A multiplatform music player";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2014-03-07 17:20:18 +00:00
|
|
|
maintainers = [ maintainers.ttuegel ];
|
2014-05-25 00:25:04 +01:00
|
|
|
# libspotify is unfree
|
2014-08-04 13:47:52 +01:00
|
|
|
hydraPlatforms = optionals (!withSpotify) platforms.linux;
|
2013-12-31 13:51:11 +00:00
|
|
|
};
|
|
|
|
}
|