2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses, texinfo, texlive, perl, ghostscript }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ne";
|
|
|
|
version = "3.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vigna";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "01aglnsfljlvx0wvyvpjfn4y88jf450a06qnj9a8lgdqv1hdkq1a";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
|
|
|
|
substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ texlive.combined.scheme-medium texinfo perl ghostscript ];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The nice editor";
|
2021-08-05 21:33:18 +00:00
|
|
|
homepage = "https://ne.di.unimi.it/";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|