diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-01-05 08:22:32 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-01-05 08:22:32 +0100 |
commit | a3137802021fce00e9d7e0a38938859104d70a6b (patch) | |
tree | 840408618b5f0c90466a3263137cf144125a179e /pkgs/applications | |
parent | 429dd8e8847c87b264430a08c5275500ed104750 (diff) | |
download | nixlib-a3137802021fce00e9d7e0a38938859104d70a6b.tar nixlib-a3137802021fce00e9d7e0a38938859104d70a6b.tar.gz nixlib-a3137802021fce00e9d7e0a38938859104d70a6b.tar.bz2 nixlib-a3137802021fce00e9d7e0a38938859104d70a6b.tar.lz nixlib-a3137802021fce00e9d7e0a38938859104d70a6b.tar.xz nixlib-a3137802021fce00e9d7e0a38938859104d70a6b.tar.zst nixlib-a3137802021fce00e9d7e0a38938859104d70a6b.zip |
profanity: Clean up package expression file.
No real changes in functionality, other than renaming libnotifySupport to just notifySupport. I've wrapped the lines to a maximum of 80 characters in width, so the file looks less cluttered up. Which includes setting apart the attribute for notifySupport and its respective dependencies from the main dependencies. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/profanity/default.nix | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/pkgs/applications/networking/instant-messengers/profanity/default.nix b/pkgs/applications/networking/instant-messengers/profanity/default.nix index f36fd5c8130a..2d75bf004b00 100644 --- a/pkgs/applications/networking/instant-messengers/profanity/default.nix +++ b/pkgs/applications/networking/instant-messengers/profanity/default.nix @@ -1,11 +1,15 @@ -{ stdenv, fetchurl, automake, autoconf, pkgconfig, glib, openssl, expat, ncurses, libotr, curl, libstrophe, -libnotifySupport ? false, libnotify ? null, libXScrnSaver ? null, libX11 ? null, gdk_pixbuf ? null}: +{ stdenv, fetchurl, automake, autoconf, pkgconfig, glib, openssl, expat +, ncurses, libotr, curl, libstrophe -assert libnotifySupport -> (libnotify != null && libXScrnSaver != null && libX11 != null && gdk_pixbuf != null); +, notifySupport ? false, libnotify ? null, libXScrnSaver ? null +, libX11 ? null, gdk_pixbuf ? null +}: + +assert notifySupport -> libnotify != null && libXScrnSaver != null + && libX11 != null && gdk_pixbuf != null; + +with stdenv.lib; -let - optional = stdenv.lib.optional; -in stdenv.mkDerivation rec { name = "profanity-${version}"; version = "0.4.5"; @@ -15,8 +19,10 @@ stdenv.mkDerivation rec { sha256 = "0qzwqxcxf695z3gf94psd2x619vlp4hkkjmkrpsla1ns0f6v6dkl"; }; - buildInputs = [ automake autoconf pkgconfig glib openssl expat ncurses libotr curl libstrophe ] - ++ optional libnotifySupport [ libnotify libXScrnSaver libX11 gdk_pixbuf ]; + buildInputs = [ + automake autoconf pkgconfig + glib openssl expat ncurses libotr curl libstrophe + ] ++ optionals notifySupport [ libnotify libXScrnSaver libX11 gdk_pixbuf ]; preConfigure = "sh bootstrap.sh"; @@ -27,8 +33,8 @@ stdenv.mkDerivation rec { libstrophe, inspired by Irssi. ''; homepage = http://profanity.im/; - license = stdenv.lib.licenses.gpl3Plus; - platforms = stdenv.lib.platforms.linux; - maintainers = [ stdenv.lib.maintainers.devhell ]; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = [ maintainers.devhell ]; }; } |