From 1ec45eaa225e7203a98b36cddb7d42db418b773b Mon Sep 17 00:00:00 2001 From: guy fleury Date: Sat, 10 Nov 2018 10:51:17 +0200 Subject: [PATCH] gnu:add ne:the nice editor --- gnu/packages/text-editors.scm | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index 0c60d202a..85e95d48d 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -343,3 +343,39 @@ team.") "@code{ghostwriter} provides a relaxing, distraction-free writing environment with Markdown markup.") (license license:gpl3+))) ;icons/* under CC-BY-SA3 + +(define-public ne + (package + (name "ne") + (version "3.1.2") + (source (origin + (method url-fetch) + (uri (string-append "http://ne.di.unimi.it/ne-" version + ".tar.gz")) + (sha256 + (base32 + "06qk3cqxyn098i1yn686bigpgh8vrrnj0qpkrgs6zwnq42s1y0d2")) + (modules '((guix build utils))) + (snippet + ;; use lncurses instead of lcurses + '(begin + (substitute* "src/makefile" + (("-lcurses") + "-lncurses")) + #t)))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) + "CC=gcc") + #:parallel-build? #f + #:phases (modify-phases %standard-phases + (delete 'configure)))) + (inputs + `(("ncurses" ,ncurses))) + (synopsis "ne, the nice editor") + (description + "ne is a free text editor based on the POSIX standard, + it is easy to use it and fully configurable") + (home-page "http://ne.di.unimi.it/ne") + (license license:gpl3+))) -- 2.19.0