diff options
author | Enrico Fasoli <fazius2009@gmail.com> | 2015-08-27 00:38:06 +0000 |
---|---|---|
committer | Enrico Fasoli <fazius2009@gmail.com> | 2015-08-28 14:24:03 +0000 |
commit | 0f041e5487e01244f56916282ec56df7a1e306ec (patch) | |
tree | 6c7964a488e929d4e644b8ac812bdec2ae26cfaf /pkgs/applications/editors/ne | |
parent | 1852e65776b7789f9cd4f48f248112740ec4692f (diff) | |
download | nixlib-0f041e5487e01244f56916282ec56df7a1e306ec.tar nixlib-0f041e5487e01244f56916282ec56df7a1e306ec.tar.gz nixlib-0f041e5487e01244f56916282ec56df7a1e306ec.tar.bz2 nixlib-0f041e5487e01244f56916282ec56df7a1e306ec.tar.lz nixlib-0f041e5487e01244f56916282ec56df7a1e306ec.tar.xz nixlib-0f041e5487e01244f56916282ec56df7a1e306ec.tar.zst nixlib-0f041e5487e01244f56916282ec56df7a1e306ec.zip |
ne: init at 3.0.1
ne: building improvements
Diffstat (limited to 'pkgs/applications/editors/ne')
-rw-r--r-- | pkgs/applications/editors/ne/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/editors/ne/default.nix b/pkgs/applications/editors/ne/default.nix new file mode 100644 index 000000000000..4e8324894abf --- /dev/null +++ b/pkgs/applications/editors/ne/default.nix @@ -0,0 +1,34 @@ +{ 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; + }; +} |