diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-04-16 19:28:42 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-04-16 19:28:42 +0000 |
commit | 1ce494d81d9e49ae5bb8c7b798a62831a5702d6a (patch) | |
tree | c2ff4a1a10d25b3b6e9016282da06ebc9aa9d3b7 /pkgs/applications/editors/elvis | |
parent | 69e566d98333458c96dd97649d37e714b95fdca3 (diff) | |
download | nixpkgs-1ce494d81d9e49ae5bb8c7b798a62831a5702d6a.tar nixpkgs-1ce494d81d9e49ae5bb8c7b798a62831a5702d6a.tar.gz nixpkgs-1ce494d81d9e49ae5bb8c7b798a62831a5702d6a.tar.bz2 nixpkgs-1ce494d81d9e49ae5bb8c7b798a62831a5702d6a.tar.lz nixpkgs-1ce494d81d9e49ae5bb8c7b798a62831a5702d6a.tar.xz nixpkgs-1ce494d81d9e49ae5bb8c7b798a62831a5702d6a.tar.zst nixpkgs-1ce494d81d9e49ae5bb8c7b798a62831a5702d6a.zip |
Adding elvis, although I can't see the characters in an xterm with black background
svn path=/nixpkgs/trunk/; revision=15098
Diffstat (limited to 'pkgs/applications/editors/elvis')
-rw-r--r-- | pkgs/applications/editors/elvis/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/editors/elvis/default.nix b/pkgs/applications/editors/elvis/default.nix new file mode 100644 index 00000000000..511e284ed39 --- /dev/null +++ b/pkgs/applications/editors/elvis/default.nix @@ -0,0 +1,40 @@ +{ fetchurl, stdenv, ncurses }: + +stdenv.mkDerivation rec { + name = "elvis-2.2_0"; + + src = fetchurl { + url = ftp://ftp.cs.pdx.edu/pub/elvis/elvis-2.2_0.tar.gz; + sha256 = "182fj9qzyq6cjq1r849gpam6nq9smwv9f9xwaq84961p56r6d14s"; + }; + + buildInputs = [ ncurses ]; + + patchPhase = '' + sed -i s/-lcurses/-lncurses/ configure + ''; + + preConfigure = '' + ensureDir $out/share/man/man1 + ''; + + installPhase = '' + ensureDir $out/bin $out/share/elvis $out/share/elvis/doc + cp elvis ref elvtags elvfmt $out/bin + cp -R data/* $out/share/elvis + cp doc/* $out/share/elvis/doc + + ensureDir $out/share/man/man1 + for a in doc/*.man; do + cp $a $out/share/man/man1/`basename $a .man`.1 + done + ''; + + configureFlags = "--ioctl=termios"; + + meta = { + homepage = http://elvis.vi-editor.org/; + description = "A vi clone for Unix and other operating systems"; + license = "free"; + }; +} |