clementine: disable build-time libspotify support

Clementine can download the Spotify support blob at runtime for
supported platforms, but we cannot distribute it because of licensing
restrictions.
This commit is contained in:
Thomas Tuegel 2015-05-02 13:38:16 -05:00
parent 9d63a5beea
commit 5b80605cfd

View File

@ -6,8 +6,6 @@
let let
version = "1.2.3"; version = "1.2.3";
withSpotify = config.clementine.spotify or false;
exeName = "clementine"; exeName = "clementine";
unwrapped = stdenv.mkDerivation { unwrapped = stdenv.mkDerivation {
@ -61,8 +59,7 @@ stdenv.mkDerivation {
buildInputs = [ buildInputs = [
unwrapped unwrapped
makeWrapper makeWrapper
] ++ gst_plugins ] ++ gst_plugins;
++ stdenv.lib.optional withSpotify libspotify;
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
@ -77,15 +74,11 @@ stdenv.mkDerivation {
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "http://www.clementine-player.org"; homepage = "http://www.clementine-player.org";
description = "A multiplatform music player" description = "A multiplatform music player"
+ " (" + " (with gstreamer plugins: "
+ concatStrings (optionals (withSpotify) ["with spotify, "])
+ "with gstreamer plugins: "
+ concatStrings (intersperse ", " (map (x: x.name) gst_plugins)) + concatStrings (intersperse ", " (map (x: x.name) gst_plugins))
+ ")"; + ")";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.ttuegel ]; maintainers = [ maintainers.ttuegel ];
# libspotify is unfree
hydraPlatforms = optionals (!withSpotify) platforms.linux;
}; };
} }