ne: modernize

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards 2025-05-30 18:31:43 -04:00
parent 4da9885acb
commit 2ee0f9a8b2
No known key found for this signature in database
GPG key ID: D83DC5377393C7E6

View file

@ -9,22 +9,24 @@
ghostscript,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "ne";
version = "3.3.4";
src = fetchFromGitHub {
owner = "vigna";
repo = "ne";
rev = version;
sha256 = "sha256-n8PERQD9G4jmW4avQjbFofrSapyRoSbQ2k1LzVt0i1o=";
tag = finalAttrs.version;
hash = "sha256-n8PERQD9G4jmW4avQjbFofrSapyRoSbQ2k1LzVt0i1o=";
};
postPatch = ''
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
substituteInPlace makefile --replace-fail "./version.pl" "perl version.pl"
substituteInPlace src/makefile --replace-fail "-lcurses" "-lncurses"
'';
strictDeps = true;
nativeBuildInputs = [
texliveMedium
texinfo6
@ -35,18 +37,20 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; {
meta = {
description = "Nice editor";
homepage = "https://ne.di.unimi.it/";
changelog = "https://github.com/vigna/ne/releases/tag/${finalAttrs.version}";
downloadPage = "https://github.com/vigna/ne";
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;
maintainers = with maintainers; [ geri1701 ];
license = lib.licenses.gpl3Only;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ geri1701 ];
mainProgram = "ne";
};
}
})