From 4cb42e96476007c2b69181c75c84e4ba5653dc50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 16 Apr 2009 19:28:57 +0000 Subject: [PATCH] Adding nvi, another small vi clone. svn path=/nixpkgs/trunk/; revision=15099 --- pkgs/applications/editors/nvi/default.nix | 45 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 49 insertions(+) create mode 100644 pkgs/applications/editors/nvi/default.nix diff --git a/pkgs/applications/editors/nvi/default.nix b/pkgs/applications/editors/nvi/default.nix new file mode 100644 index 000000000000..d08e44699c4e --- /dev/null +++ b/pkgs/applications/editors/nvi/default.nix @@ -0,0 +1,45 @@ +{ fetchurl, stdenv, ncurses }: + +stdenv.mkDerivation rec { + name = "nvi-1.79"; + + src = fetchurl { + url = ftp://ftp.bostic.com/pub/nvi-1.79.tar.gz; + sha256 = "0cvf56rbylz7ksny6g2256sjg8yrsxrmbpk82r64rhi53sm8fnvm"; + }; + + buildInputs = [ ncurses ]; + + patchPhase = '' + sed -i s/-lcurses/-lncurses/ build/configure + ''; + + configurePhase = '' + mkdir mybuild + cd mybuild + ../build/configure --prefix=$out --disable-curses + ''; + + installPhase = '' + ensureDir $out/bin $out/share/vi/catalog + for a in dutch english french german ru_SU.KOI8-R spanish swedish; do + cp ../catalog/$a $out/share/vi/catalog + done + cp nvi $out/bin/nvi + ln -s $out/bin/nvi $out/bin/vi + ln -s $out/bin/nvi $out/bin/ex + ln -s $out/bin/nvi $out/bin/view + + ensureDir $out/share/man/man1 + cp ../docs/USD.doc/vi.man/vi.1 $out/share/man/man1/nvi.1 + ln -s $out/share/man/man1/nvi.1 $out/share/man/man1/vi + ln -s $out/share/man/man1/nvi.1 $out/share/man/man1/ex + ln -s $out/share/man/man1/nvi.1 $out/share/man/man1/view + ''; + + meta = { + homepage = http://www.bostic.com/vi/; + description = "The Berkeley Vi Editor"; + license = "free"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 89a932b398f3..38c1a14b576f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8668,6 +8668,10 @@ let motif = lesstif; }; + nvi = import ../applications/editors/nvi { + inherit fetchurl stdenv ncurses; + }; + nxml = import ../applications/editors/emacs-modes/nxml { inherit fetchurl stdenv; };