2013-12-31 14:51:11 +01:00
|
|
|
{ stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst_plugins_base
|
|
|
|
, liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist
|
|
|
|
, usbmuxd, libmtp, gvfs, libcdio, protobuf, libspotify, qca2, pkgconfig
|
2014-05-25 01:25:04 +02:00
|
|
|
, sparsehash, config }:
|
2013-12-31 14:51:11 +01:00
|
|
|
|
2014-05-25 01:25:04 +02:00
|
|
|
let withSpotify = config.clementine.spotify or false;
|
|
|
|
in
|
2013-12-31 14:51:11 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "clementine-1.2.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://clementine-player.googlecode.com/files/clementine-1.2.1.tar.gz;
|
|
|
|
sha256 = "0kk5cjmb8nirx0im3c0z91af2k72zxi6lwzm6rb57qihya5nwmfv";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./clementine-1.2.1-include-paths.patch ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
cmake
|
|
|
|
fftw
|
|
|
|
gettext
|
|
|
|
glew
|
|
|
|
gst_plugins_base
|
|
|
|
gstreamer
|
|
|
|
gvfs
|
|
|
|
libcdio
|
|
|
|
libgpod
|
|
|
|
liblastfm
|
|
|
|
libmtp
|
|
|
|
libplist
|
|
|
|
pkgconfig
|
|
|
|
protobuf
|
|
|
|
qca2
|
|
|
|
qjson
|
|
|
|
qt4
|
|
|
|
sparsehash
|
|
|
|
sqlite
|
|
|
|
taglib
|
|
|
|
usbmuxd
|
2014-05-25 01:25:04 +02:00
|
|
|
] ++ stdenv.lib.optional withSpotify libspotify;
|
2013-12-31 14:51:11 +01: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 18:20:18 +01:00
|
|
|
maintainers = [ maintainers.ttuegel ];
|
2014-05-25 01:25:04 +02:00
|
|
|
# libspotify is unfree
|
2014-05-25 20:30:18 +02:00
|
|
|
hydraPlatforms = optional (!withSpotify) platforms.linux;
|
2013-12-31 14:51:11 +01:00
|
|
|
};
|
|
|
|
}
|