unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob c64a3ed7eb8c263c387fd67e5d6cc86d898549cb 3433 bytes (raw)
name: gnu/packages/nano.scm 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages nano)
  #:use-module (guix licenses)
  #:use-module (gnu packages gettext)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages ncurses)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu))

(define-public nano
  (package
    (name "nano")
    (version "3.2")
    (source
     (origin
      (method url-fetch)
      (uri (string-append "mirror://gnu/nano/nano-"
                          version ".tar.xz"))
      (sha256
       (base32
        "0jb3zq0v84xb0chyynkcp2jhs9660wmpkic294p4p6c96npp69yi"))))
    (build-system gnu-build-system)
    (inputs
     `(("gettext" ,gettext-minimal)
       ("ncurses" ,ncurses)))
    (home-page "https://www.nano-editor.org/")
    (synopsis "Small, user-friendly console text editor")
    (description
     "GNU nano is a small and simple text editor for use in a terminal.  Besides
basic editing, it supports: undo/redo, syntax highlighting, spell checking,
justifying, auto-indentation, bracket matching, interactive search-and-replace
(with regular expressions), and the editing of multiple files.")
    (license gpl3+))) ; some files are under GPLv2+

(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 ncurses instead of curses
        '(begin
           (substitute* "src/makefile"
             (("-lcurses") "-lncurses"))
           #t))))
    (build-system gnu-build-system)
    (arguments
     `(#:tests? #f ;; no tests
       #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
                          "CC=gcc")
       #:phases (modify-phases %standard-phases
                  (delete 'configure)))) ;;no configure script used
    (inputs
     `(("ncurses" ,ncurses)
       ("perl" ,perl))) ;;needed by some scripts in source code
    (synopsis "Small, fast text editor")
    (description
     "NE is fast, small, powerful and simple text editor that can be fully
configured.  It has a simple scripting language where scripts can be easily
generated and played.")
    (home-page "http://ne.di.unimi.it/ne")
    (license gpl3)))

debug log:

solving c64a3ed7e ...
found c64a3ed7e in https://yhetil.org/guix-patches/CAOYpmvoSLfvmPCw9CSNHzoqWJt5KVtnecnyb4r15h7k-dDFNVw@mail.gmail.com/
found 057e8c3bd in https://git.savannah.gnu.org/cgit/guix.git
preparing index
index prepared:
100644 057e8c3bd9826ba576cd2b4a46de5be2c14dd770	gnu/packages/nano.scm

applying [1/1] https://yhetil.org/guix-patches/CAOYpmvoSLfvmPCw9CSNHzoqWJt5KVtnecnyb4r15h7k-dDFNVw@mail.gmail.com/
diff --git a/gnu/packages/nano.scm b/gnu/packages/nano.scm
index 057e8c3bd..c64a3ed7e 100644

Checking patch gnu/packages/nano.scm...
Applied patch gnu/packages/nano.scm cleanly.

index at:
100644 c64a3ed7eb8c263c387fd67e5d6cc86d898549cb	gnu/packages/nano.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).