2023-11-04 20:02:28 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses, texinfo6, texliveMedium, perl, ghostscript }:
|
2015-08-27 00:38:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ne";
|
2023-10-20 10:27:18 +00:00
|
|
|
version = "3.3.3";
|
2019-10-12 10:57:05 +00:00
|
|
|
|
2015-08-27 00:38:06 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vigna";
|
2019-10-12 10:57:05 +00:00
|
|
|
repo = pname;
|
2015-08-27 00:38:06 +00:00
|
|
|
rev = version;
|
2023-10-20 10:27:18 +00:00
|
|
|
sha256 = "sha256-lbXb/ZY0+vkOB8mXkHDaehXZMzrpx3A0jWnLpCjhMDE=";
|
2015-08-27 00:38:06 +00:00
|
|
|
};
|
2019-10-12 10:57:05 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2015-08-27 00:38:06 +00:00
|
|
|
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
|
2019-10-12 10:57:05 +00:00
|
|
|
substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
|
2015-08-27 00:38:06 +00:00
|
|
|
'';
|
2017-01-29 21:35:49 +00:00
|
|
|
|
2023-11-04 20:02:28 +00:00
|
|
|
nativeBuildInputs = [ texliveMedium texinfo6 perl ghostscript ];
|
2019-10-12 10:57:05 +00:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "The nice editor";
|
2021-07-31 17:01:50 +00:00
|
|
|
homepage = "https://ne.di.unimi.it/";
|
2015-08-27 00:38:06 +00: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 00:38:06 +00:00
|
|
|
'';
|
2019-10-12 10:57:05 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
2023-05-09 22:30:07 +00:00
|
|
|
maintainers = with maintainers; [ geri1701 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "ne";
|
2015-08-27 00:38:06 +00:00
|
|
|
};
|
|
|
|
}
|