pidgin: simplify using the wrapped version

Now only the `pidgin` attribute is exposed and it's wrapped based on
whether the `plugins` parameter is overridden.

Discussion: https://github.com/NixOS/nixpkgs/issues/8999#issuecomment-224851642
This commit is contained in:
Vladimír Čunát
2016-06-09 12:21:36 +02:00
parent dc6f1cf4b3
commit cc174b3d55
3 changed files with 11 additions and 5 deletions
@@ -6,11 +6,12 @@
, openssl ? null
, gnutls ? null
, libgcrypt ? null
, plugins, symlinkJoin
}:
# FIXME: clean the mess around choosing the SSL library (nss by default)
stdenv.mkDerivation rec {
let unwrapped = stdenv.mkDerivation rec {
name = "pidgin-${version}";
majorVersion = "2";
version = "${majorVersion}.10.11";
@@ -68,4 +69,11 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
maintainers = [ maintainers.vcunat ];
};
}
};
in if plugins == [] then unwrapped
else import ./wrapper.nix {
inherit stdenv makeWrapper symlinkJoin plugins;
pidgin = unwrapped;
}