2017-01-29 21:35:49 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ncurses, texinfo, texlive, perl, ghostscript }:
|
2015-08-27 01:38:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ne";
|
2018-10-14 11:50:55 +01:00
|
|
|
version = "3.1.2";
|
2015-08-27 01:38:06 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vigna";
|
|
|
|
repo = "ne";
|
|
|
|
rev = version;
|
2018-10-14 11:50:55 +01:00
|
|
|
sha256 = "154grh9gdzydnqn9xxj7zpia9cc5x6a7y1g73vwizr9bkg92l5cc";
|
2015-08-27 01:38:06 +01:00
|
|
|
};
|
2017-01-29 21:35:49 +00:00
|
|
|
buildInputs = [ ncurses texlive.combined.scheme-medium texinfo perl ghostscript ];
|
2015-08-27 01:38:06 +01: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 21:35:49 +00:00
|
|
|
|
2015-08-27 01:38:06 +01:00
|
|
|
meta = {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "The nice editor";
|
2015-08-27 01:38:06 +01:00
|
|
|
homepage = https://github.com/vigna/ne;
|
|
|
|
longDescription = ''
|
2017-01-29 21:35:49 +00: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 01:38:06 +01:00
|
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2015-08-27 01:38:06 +01:00
|
|
|
};
|
|
|
|
}
|