2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses, texinfo, texlive, perl, ghostscript }:
|
2015-08-27 02:38:06 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ne";
|
2022-09-29 00:21:55 +02:00
|
|
|
version = "3.3.2";
|
2019-10-12 12:57:05 +02:00
|
|
|
|
2015-08-27 02:38:06 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vigna";
|
2019-10-12 12:57:05 +02:00
|
|
|
repo = pname;
|
2015-08-27 02:38:06 +02:00
|
|
|
rev = version;
|
2022-09-29 00:21:55 +02:00
|
|
|
sha256 = "sha256-mRMACfWcUW6/R43riRGNce4Ac5IRo4YEML8H0oGSH5o=";
|
2015-08-27 02:38:06 +02:00
|
|
|
};
|
2019-10-12 12:57:05 +02:00
|
|
|
|
|
|
|
postPatch = ''
|
2015-08-27 02:38:06 +02:00
|
|
|
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
|
2019-10-12 12:57:05 +02:00
|
|
|
substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
|
2015-08-27 02:38:06 +02:00
|
|
|
'';
|
2017-01-29 22:35:49 +01:00
|
|
|
|
2019-10-12 12:57:05 +02:00
|
|
|
nativeBuildInputs = [ texlive.combined.scheme-medium texinfo perl ghostscript ];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "The nice editor";
|
2021-07-31 19:01:50 +02:00
|
|
|
homepage = "https://ne.di.unimi.it/";
|
2015-08-27 02:38:06 +02:00
|
|
|
longDescription = ''
|
2017-01-29 22:35:49 +01: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 02:38:06 +02:00
|
|
|
'';
|
2019-10-12 12:57:05 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
2015-08-27 02:38:06 +02:00
|
|
|
};
|
|
|
|
}
|