mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
bd01fad0ed
In line with the Nixpkgs manual. A mechanical change, done with this command: find pkgs -name "*.nix" | \ while read f; do \ sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \ done I manually skipped some: * Descriptions starting with an abbreviation, a user name or package name * Frequently generated expressions (haskell-packages.nix)
35 lines
1.2 KiB
Nix
35 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, ncurses, texinfo, tetex, perl, ghostscript }:
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ne-${version}";
|
|
version = "3.0.1";
|
|
src = fetchFromGitHub {
|
|
owner = "vigna";
|
|
repo = "ne";
|
|
rev = version;
|
|
sha256 = "05inzhlqlf4ka22q78q389pr34bsb4lgp1i5qh550vjkb2cvbdfp";
|
|
};
|
|
buildInputs = [ ncurses tetex texinfo perl ghostscript ];
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
substituteInPlace src/makefile --replace "CC=c99" "cc=gcc"
|
|
substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
|
|
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
|
|
cd doc && make && cd ..
|
|
cd src && make && cd ..
|
|
make PREFIX=$out install
|
|
'';
|
|
|
|
meta = {
|
|
description = "The nice editor";
|
|
homepage = 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 = stdenv.lib.licenses.gpl3;
|
|
};
|
|
}
|