2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses, texinfo6, texliveMedium, perl, ghostscript }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ne";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.3.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vigna";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-lbXb/ZY0+vkOB8mXkHDaehXZMzrpx3A0jWnLpCjhMDE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
|
|
|
|
substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ texliveMedium texinfo6 perl ghostscript ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ geri1701 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "ne";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|