Skip to content

Commit

Permalink
clementine: added switches for optional dependences (#23730)
Browse files Browse the repository at this point in the history
Added switches for ipod, mtp, cd and cloud support.

The switch for ipod support, specifically, allows users to build it without libplist, wich is currently marked as insecure.
  • Loading branch information
xvapx authored and joachifm committed Mar 16, 2017
1 parent ed7fb7a commit b760bfd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pkgs/applications/audio/clementine/default.nix
Expand Up @@ -5,6 +5,10 @@

let
withSpotify = config.clementine.spotify or false;
withIpod = config.clementine.ipod or false;
withMTP = config.clementine.mtp or true;
withCD = config.clementine.cd or true;
withCloud = config.clementine.cloud or true;

version = "1.2.3";

Expand All @@ -30,21 +34,19 @@ let
gst-plugins-base
gstreamer
gvfs
libcdio
libgpod
liblastfm
libmtp
libplist
pkgconfig
protobuf
qca2
qjson
qt4
sparsehash
sqlite
taglib
usbmuxd
];
]
++ stdenv.lib.optionals (withIpod) [libgpod libplist usbmuxd]
++ stdenv.lib.optionals (withMTP) [libmtp]
++ stdenv.lib.optionals (withCD) [libcdio]
++ stdenv.lib.optionals (withCloud) [sparsehash];

free = stdenv.mkDerivation {
name = "clementine-free-${version}";
Expand Down

0 comments on commit b760bfd

Please sign in to comment.