nixpkgs/pkgs/applications/editors/ne/default.nix
R. RyanTM ff4aeb7793 ne: 3.0.1 -> 3.1.1 (#41536)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/ne/versions.

These checks were done:

- built on NixOS
- /nix/store/3fg6chzj3d06c3vgdg6nm31s8wh0rcy7-ne-3.1.1/bin/ne passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 3.1.1 with grep in /nix/store/3fg6chzj3d06c3vgdg6nm31s8wh0rcy7-ne-3.1.1
- directory tree listing: https://gist.github.com/42510d37e15dd038fe5cb41d40afdd1b
- du listing: https://gist.github.com/bc434bb32e50be446738c27c6e76a14e
2018-06-09 00:57:59 +02:00

37 lines
1.2 KiB
Nix

{ stdenv, fetchFromGitHub, ncurses, texinfo, texlive, perl, ghostscript }:
stdenv.mkDerivation rec {
name = "ne-${version}";
version = "3.1.1";
src = fetchFromGitHub {
owner = "vigna";
repo = "ne";
rev = version;
sha256 = "1i4vk5r2wn4cd6sgsidzqs9s3bmb4j9cn4392izkidi0j9mm3hvg";
};
buildInputs = [ ncurses texlive.combined.scheme-medium 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;
platforms = stdenv.lib.platforms.unix;
};
}