mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, ncurses, texinfo6, texliveMedium, perl, ghostscript }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ne";
|
|
version = "3.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vigna";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-lbXb/ZY0+vkOB8mXkHDaehXZMzrpx3A0jWnLpCjhMDE=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
|
|
substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
|
|
'';
|
|
|
|
nativeBuildInputs = [ texliveMedium texinfo6 perl ghostscript ];
|
|
buildInputs = [ ncurses ];
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
mainProgram = "ne";
|
|
};
|
|
}
|