diff options
author | Marti Serra <marti.serra.coscollano@gmail.com> | 2017-03-17 00:47:37 +0100 |
---|---|---|
committer | Joachim F <joachifm@users.noreply.github.com> | 2017-03-17 00:47:37 +0100 |
commit | b760bfd9f67cff5230fd2f952de8ff771f19176b (patch) | |
tree | ccaa9a676c8bf57e10e995fa3dc082f8733bc7db /pkgs/applications/audio/clementine | |
parent | ed7fb7a26534ae0e0ea4c186a4f7bba090033d56 (diff) |
clementine: added switches for optional dependences (#23730)
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.
Diffstat (limited to 'pkgs/applications/audio/clementine')
-rw-r--r-- | pkgs/applications/audio/clementine/default.nix | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/applications/audio/clementine/default.nix b/pkgs/applications/audio/clementine/default.nix index 01c8ecaced0d0..78841da46c59c 100644 --- a/pkgs/applications/audio/clementine/default.nix +++ b/pkgs/applications/audio/clementine/default.nix @@ -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"; @@ -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}"; |