mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +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,
|
ghostscript,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "ne";
|
pname = "ne";
|
||||||
version = "3.3.4";
|
version = "3.3.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "vigna";
|
owner = "vigna";
|
||||||
repo = "ne";
|
repo = "ne";
|
||||||
rev = version;
|
tag = finalAttrs.version;
|
||||||
sha256 = "sha256-n8PERQD9G4jmW4avQjbFofrSapyRoSbQ2k1LzVt0i1o=";
|
hash = "sha256-n8PERQD9G4jmW4avQjbFofrSapyRoSbQ2k1LzVt0i1o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
|
substituteInPlace makefile --replace-fail "./version.pl" "perl version.pl"
|
||||||
substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
|
substituteInPlace src/makefile --replace-fail "-lcurses" "-lncurses"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
texliveMedium
|
texliveMedium
|
||||||
texinfo6
|
texinfo6
|
||||||
|
@ -35,18 +37,20 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Nice editor";
|
description = "Nice editor";
|
||||||
homepage = "https://ne.di.unimi.it/";
|
homepage = "https://ne.di.unimi.it/";
|
||||||
|
changelog = "https://github.com/vigna/ne/releases/tag/${finalAttrs.version}";
|
||||||
|
downloadPage = "https://github.com/vigna/ne";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
ne is a free (GPL'd) text editor based on the POSIX standard that runs
|
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,
|
(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
|
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.
|
resource usage. See the manual for some highlights of ne's features.
|
||||||
'';
|
'';
|
||||||
license = licenses.gpl3;
|
license = lib.licenses.gpl3Only;
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
maintainers = with maintainers; [ geri1701 ];
|
maintainers = with lib.maintainers; [ geri1701 ];
|
||||||
mainProgram = "ne";
|
mainProgram = "ne";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue