2017-01-29 22:35:49 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ncurses, texinfo, texlive, perl, ghostscript }:
|
2015-08-27 02:38:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ne-${version}";
|
|
|
|
version = "3.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vigna";
|
|
|
|
repo = "ne";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "05inzhlqlf4ka22q78q389pr34bsb4lgp1i5qh550vjkb2cvbdfp";
|
|
|
|
};
|
2017-01-29 22:35:49 +01:00
|
|
|
buildInputs = [ ncurses texlive.combined.scheme-medium texinfo perl ghostscript ];
|
2015-08-27 02:38:06 +02:00
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
|
|
substituteInPlace src/makefile --replace "CC=c99" "cc=gcc"
|
|
|
|
substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
|
|
|
|
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
|
|
|
|
cd doc && make && cd ..
|
|
|
|
cd src && make && cd ..
|
|
|
|
make PREFIX=$out install
|
|
|
|
'';
|
2017-01-29 22:35:49 +01:00
|
|
|
|
2015-08-27 02:38:06 +02:00
|
|
|
meta = {
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "The nice editor";
|
2015-08-27 02:38:06 +02:00
|
|
|
homepage = https://github.com/vigna/ne;
|
|
|
|
longDescription = ''
|
2017-01-29 22:35:49 +01:00
|
|
|
ne is a free (GPL'd) text editor based on the POSIX standard that runs
|
|
|
|
(we hope) on almost any UN*X machine. ne is easy to use for the beginner,
|
|
|
|
but powerful and fully configurable for the wizard, and most sparing in its
|
|
|
|
resource usage. See the manual for some highlights of ne's features.
|
2015-08-27 02:38:06 +02:00
|
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2015-08-27 02:38:06 +02:00
|
|
|
};
|
|
|
|
}
|