summary refs log tree commit diff
path: root/pkgs/applications/misc/rxvt_unicode
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-07-28 18:01:17 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-07-28 18:01:17 +0000
commitf1598a8941287ed25deca83cc71c72c256089362 (patch)
treeb4735ba022095233ef2ea865de4145faead12f2e /pkgs/applications/misc/rxvt_unicode
parentd67aefc19d29a1522b21152f508b90a1c0261c3d (diff)
downloadnixpkgs-f1598a8941287ed25deca83cc71c72c256089362.tar
nixpkgs-f1598a8941287ed25deca83cc71c72c256089362.tar.gz
nixpkgs-f1598a8941287ed25deca83cc71c72c256089362.tar.bz2
nixpkgs-f1598a8941287ed25deca83cc71c72c256089362.tar.lz
nixpkgs-f1598a8941287ed25deca83cc71c72c256089362.tar.xz
nixpkgs-f1598a8941287ed25deca83cc71c72c256089362.tar.zst
nixpkgs-f1598a8941287ed25deca83cc71c72c256089362.zip
* More cleanup.
svn path=/nixpkgs/trunk/; revision=22798
Diffstat (limited to 'pkgs/applications/misc/rxvt_unicode')
-rw-r--r--pkgs/applications/misc/rxvt_unicode/default.nix33
1 files changed, 16 insertions, 17 deletions
diff --git a/pkgs/applications/misc/rxvt_unicode/default.nix b/pkgs/applications/misc/rxvt_unicode/default.nix
index 74eead5e782..029d8675ddf 100644
--- a/pkgs/applications/misc/rxvt_unicode/default.nix
+++ b/pkgs/applications/misc/rxvt_unicode/default.nix
@@ -1,11 +1,11 @@
-args: with args;
-# args.perlSupport: enables perl interpreter support
-# see man urxvtperl for details
+{ stdenv, fetchurl, perlSupport, libX11, libXt, libXft, ncurses, perl }:
+
 let 
   name = "rxvt-unicode";
   version = "9.07";
   n = "${name}-${version}";
 in
+
 stdenv.mkDerivation (rec {
 
   name = "${n}${if perlSupport then "-with-perl" else ""}";
@@ -15,26 +15,25 @@ stdenv.mkDerivation (rec {
     sha256 = "18y5mb3cm1gawjm723q5r7yk37s9drzg39kna036i694m2667865";
   };
 
-  buildInputs = [ libX11 libXt libXft ncurses /* required to build the terminfo file */ ]
-          ++ lib.optional perlSupport perl;
+  buildInputs =
+    [ libX11 libXt libXft ncurses /* required to build the terminfo file */ ]
+    ++ stdenv.lib.optional perlSupport perl;
 
-  preConfigure=''
-    configureFlags="${if perlSupport then "--enable-perl" else "--disable-perl"}";
-    export TERMINFO=$out/share/terminfo # without this the terminfo won't be compiled by tic, see man tic
-  ''
-  # make urxvt find its perl file lib/perl5/site_perl is added to PERL5LIB automatically
-  + (if perlSupport then ''
+  preConfigure =
+    ''
+      configureFlags="${if perlSupport then "--enable-perl" else "--disable-perl"}";
+      export TERMINFO=$out/share/terminfo # without this the terminfo won't be compiled by tic, see man tic
+    ''
+    # make urxvt find its perl file lib/perl5/site_perl is added to PERL5LIB automatically
+    + stdenv.lib.optionalString perlSupport ''
       ensureDir $out/lib/perl5
       ln -s $out/{lib/urxvt,lib/perl5/site_perl}
-  '' else "");
-
-  postInstall = ''
-  '';
+    '';
 
   meta = {
-    description = "rxvt-unicode is a clone of the well known terminal emulator rxvt.";
+    description = "A clone of the well-known terminal emulator rxvt";
     longDescription = "
-      you should put this into your .bashrc
+      You should put this into your ~/.bashrc:
       export TERMINFO=~/.nix-profile/share/terminfo
     ";
     homepage = "http://software.schmorp.de/pkg/rxvt-unicode.html";