depot/third_party/nixpkgs/pkgs/applications/editors/ne/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

37 lines
1.2 KiB
Nix

{ lib, stdenv, fetchFromGitHub, ncurses, texinfo6, texlive, perl, ghostscript }:
stdenv.mkDerivation rec {
pname = "ne";
version = "3.3.2";
src = fetchFromGitHub {
owner = "vigna";
repo = pname;
rev = version;
sha256 = "sha256-mRMACfWcUW6/R43riRGNce4Ac5IRo4YEML8H0oGSH5o=";
};
postPatch = ''
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
'';
nativeBuildInputs = [ texlive.combined.scheme-medium texinfo6 perl ghostscript ];
buildInputs = [ ncurses ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; {
description = "The nice editor";
homepage = "https://ne.di.unimi.it/";
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 ];
};
}