2009-04-16 21:28:42 +02:00
|
|
|
{ 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 ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/man/man1
|
2009-04-16 21:28:42 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin $out/share/elvis $out/share/elvis/doc
|
2009-04-16 21:28:42 +02:00
|
|
|
cp elvis ref elvtags elvfmt $out/bin
|
|
|
|
cp -R data/* $out/share/elvis
|
|
|
|
cp doc/* $out/share/elvis/doc
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/man/man1
|
2009-04-16 21:28:42 +02:00
|
|
|
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";
|
2014-11-06 01:44:33 +01:00
|
|
|
license = stdenv.lib.licenses.free;
|
2009-04-16 21:28:42 +02:00
|
|
|
};
|
|
|
|
}
|