mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
ne: modernize
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
parent
4da9885acb
commit
2ee0f9a8b2
1 changed files with 14 additions and 10 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue