summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/ne
diff options
context:
space:
mode:
authorR. RyanTM <ryantm-bot@ryantm.com>2019-10-12 03:57:05 -0700
committerRenaud <c0bw3b@users.noreply.github.com>2019-10-12 12:57:05 +0200
commit65d7bf58f11a2e116087ddbfcd71db4218e45125 (patch)
tree3bb53412ff58605aae959edd6c5b04cb83e9b4cc /pkgs/applications/editors/ne
parent3c0f64b4b58cd194af687b8e277d528cd47600e7 (diff)
ne: 3.1.2 -> 3.2.1 (#70663)
* ne: 3.1.2 -> 3.2.1 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 * ne: revamp
Diffstat (limited to 'pkgs/applications/editors/ne')
-rw-r--r--pkgs/applications/editors/ne/default.nix32
1 files changed, 16 insertions, 16 deletions
diff --git a/pkgs/applications/editors/ne/default.nix b/pkgs/applications/editors/ne/default.nix
index 96687ab81d67..3c96ba911651 100644
--- a/pkgs/applications/editors/ne/default.nix
+++ b/pkgs/applications/editors/ne/default.nix
@@ -1,36 +1,36 @@
{ stdenv, fetchFromGitHub, ncurses, texinfo, texlive, perl, ghostscript }:
-
stdenv.mkDerivation rec {
pname = "ne";
- version = "3.1.2";
+ version = "3.2.1";
+
src = fetchFromGitHub {
owner = "vigna";
- repo = "ne";
+ repo = pname;
rev = version;
- sha256 = "154grh9gdzydnqn9xxj7zpia9cc5x6a7y1g73vwizr9bkg92l5cc";
+ sha256 = "0h6d08cnwrk96ss83i9bragwwanph6x54sm3ak1z81146dsqsiif";
};
- 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"
+
+ postPatch = ''
substituteInPlace makefile --replace "./version.pl" "perl version.pl"
- cd doc && make && cd ..
- cd src && make && cd ..
- make PREFIX=$out install
+ substituteInPlace src/makefile --replace "-lcurses" "-lncurses"
'';
- meta = {
+ nativeBuildInputs = [ texlive.combined.scheme-medium texinfo perl ghostscript ];
+ buildInputs = [ ncurses ];
+
+ makeFlags = [ "PREFIX=${placeholder "out"}" ];
+
+ meta = with stdenv.lib; {
description = "The nice editor";
- homepage = https://github.com/vigna/ne;
+ homepage = "http://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 = stdenv.lib.licenses.gpl3;
- platforms = stdenv.lib.platforms.unix;
+ license = licenses.gpl3;
+ platforms = platforms.unix;
};
}