Merge pull request #2740 from ttuegel/clementine

clementine: disable unfree dependencies by default
This commit is contained in:
Domen Kožar 2014-05-25 15:38:22 +02:00
commit 6915bc07b2
1 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,10 @@
{ stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst_plugins_base { stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst_plugins_base
, liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist , liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist
, usbmuxd, libmtp, gvfs, libcdio, protobuf, libspotify, qca2, pkgconfig , usbmuxd, libmtp, gvfs, libcdio, protobuf, libspotify, qca2, pkgconfig
, sparsehash }: , sparsehash, config }:
let withSpotify = config.clementine.spotify or false;
in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "clementine-1.2.1"; name = "clementine-1.2.1";
@ -27,7 +29,6 @@ stdenv.mkDerivation {
liblastfm liblastfm
libmtp libmtp
libplist libplist
libspotify
pkgconfig pkgconfig
protobuf protobuf
qca2 qca2
@ -37,7 +38,7 @@ stdenv.mkDerivation {
sqlite sqlite
taglib taglib
usbmuxd usbmuxd
]; ] ++ stdenv.lib.optional withSpotify libspotify;
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "http://www.clementine-player.org"; homepage = "http://www.clementine-player.org";
@ -45,6 +46,7 @@ stdenv.mkDerivation {
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.ttuegel ]; maintainers = [ maintainers.ttuegel ];
hydraPlatforms = []; # libspotify is unfree # libspotify is unfree
hydraPlatforms = optional (not withSpotify) platforms.linux;
}; };
} }