about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2014-05-24 18:25:04 -0500
committerThomas Tuegel <ttuegel@gmail.com>2014-05-24 18:25:04 -0500
commit0a794b79ca0eb751d2a16c1d6ac93fc0ce3fd17f (patch)
tree556d34fde701d15cf5774bcf231c9a7093215266 /pkgs/applications/audio
parentb9249596488e465daffd29446314d37efeb0fb40 (diff)
downloadnixlib-0a794b79ca0eb751d2a16c1d6ac93fc0ce3fd17f.tar
nixlib-0a794b79ca0eb751d2a16c1d6ac93fc0ce3fd17f.tar.gz
nixlib-0a794b79ca0eb751d2a16c1d6ac93fc0ce3fd17f.tar.bz2
nixlib-0a794b79ca0eb751d2a16c1d6ac93fc0ce3fd17f.tar.lz
nixlib-0a794b79ca0eb751d2a16c1d6ac93fc0ce3fd17f.tar.xz
nixlib-0a794b79ca0eb751d2a16c1d6ac93fc0ce3fd17f.tar.zst
nixlib-0a794b79ca0eb751d2a16c1d6ac93fc0ce3fd17f.zip
clementine: disable unfree dependencies by default
Clementine has an optional dependency on libspotify, which is unfree.
Enabling libspotify unconditionally prevented Hydra from distributing
Clementine. Now, we optionally enable it based on
config.clementine.spotify.
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/clementine/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/applications/audio/clementine/default.nix b/pkgs/applications/audio/clementine/default.nix
index 5d4a3614e408..512ca89031d0 100644
--- a/pkgs/applications/audio/clementine/default.nix
+++ b/pkgs/applications/audio/clementine/default.nix
@@ -1,8 +1,10 @@
 { 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
-, sparsehash }:
+, sparsehash, config }:
 
+let withSpotify = config.clementine.spotify or false;
+in
 stdenv.mkDerivation {
   name = "clementine-1.2.1";
 
@@ -27,7 +29,6 @@ stdenv.mkDerivation {
     liblastfm
     libmtp
     libplist
-    libspotify
     pkgconfig
     protobuf
     qca2
@@ -37,7 +38,7 @@ stdenv.mkDerivation {
     sqlite
     taglib
     usbmuxd
-  ];
+  ] ++ stdenv.lib.optional withSpotify libspotify;
 
   meta = with stdenv.lib; {
     homepage = "http://www.clementine-player.org";
@@ -45,6 +46,7 @@ stdenv.mkDerivation {
     license = licenses.gpl3Plus;
     platforms = platforms.linux;
     maintainers = [ maintainers.ttuegel ];
-    hydraPlatforms = []; # libspotify is unfree
+    # libspotify is unfree
+    hydraPlatforms = optional (not withSpotify) platforms.linux;
   };
 }