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";
|
2019-10-12 11:57:05 +01:00
|
|
|
version = "3.2.1";
|
|
|
|
|
2015-08-27 01:38:06 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vigna";
|
2019-10-12 11:57:05 +01:00
|
|
|
repo = pname;
|
2015-08-27 01:38:06 +01:00
|
|
|
rev = version;
|
2019-10-12 11:57:05 +01:00
|
|
|
sha256 = "0h6d08cnwrk96ss83i9bragwwanph6x54sm3ak1z81146dsqsiif";
|
2015-08-27 01:38:06 +01:00
|
|
|
};
|
2019-10-12 11:57:05 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
2015-08-27 01:38:06 +01:00
|
|
|
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
|
2019-10-12 11:57:05 +01:00
|
|
|
substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
|
2015-08-27 01:38:06 +01:00
|
|
|
'';
|
2017-01-29 21:35:49 +00:00
|
|
|
|
2019-10-12 11:57:05 +01:00
|
|
|
nativeBuildInputs = [ texlive.combined.scheme-medium texinfo perl ghostscript ];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "The nice editor";
|
2019-10-12 11:57:05 +01:00
|
|
|
homepage = "http://ne.di.unimi.it/";
|
2015-08-27 01:38:06 +01:00
|
|
|
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
|
|
|
'';
|
2019-10-12 11:57:05 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
2015-08-27 01:38:06 +01:00
|
|
|
};
|
|
|
|
}
|