···11+{ stdenv, fetchFromGitHub, ncurses, texinfo, tetex, perl, ghostscript }:
22+33+44+stdenv.mkDerivation rec {
55+ name = "ne-${version}";
66+ version = "3.0.1";
77+ src = fetchFromGitHub {
88+ owner = "vigna";
99+ repo = "ne";
1010+ rev = version;
1111+ sha256 = "05inzhlqlf4ka22q78q389pr34bsb4lgp1i5qh550vjkb2cvbdfp";
1212+ };
1313+ buildInputs = [ ncurses tetex texinfo perl ghostscript ];
1414+ dontBuild = true;
1515+ installPhase = ''
1616+ substituteInPlace src/makefile --replace "CC=c99" "cc=gcc"
1717+ substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
1818+ substituteInPlace makefile --replace "./version.pl" "perl version.pl"
1919+ cd doc && make && cd ..
2020+ cd src && make && cd ..
2121+ make PREFIX=$out install
2222+ '';
2323+2424+ meta = {
2525+ description = "the nice editor";
2626+ homepage = https://github.com/vigna/ne;
2727+ longDescription = ''
2828+ ne is a free (GPL'd) text editor based on the POSIX standard that runs (we hope) on almost any
2929+UN*X machine. ne is easy to use for the beginner, but powerful and fully configurable for the wizard,
3030+and most sparing in its resource usage. See the manual for some highlights of ne's features.
3131+ '';
3232+ license = stdenv.lib.licenses.gpl3;
3333+ };
3434+}