distro: Add GNU Ed.
[jackhill/guix/guix.git] / distro / packages / ed.scm
CommitLineData
0aa94f0c
NK
1;;; Guix --- Nix package management from Guile. -*- coding: utf-8 -*-
2;;; Copyright (C) 2012 Nikita Karetnikov <nikita@karetnikov.org>
3;;;
4;;; This file is part of Guix.
5;;;
6;;; Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (distro packages ed)
20 #:use-module (guix packages)
21 #:use-module (guix download)
22 #:use-module (guix build-system gnu))
23
24(define-public ed
25 (package
26 (name "ed")
27 (version "1.5")
28 (source
29 (origin
30 (method url-fetch)
31 (uri (string-append
32 "mirror://gnu/ed/ed-"
33 version
34 ".tar.gz"))
35 (sha256
36 (base32
37 "18gvhyhwpabmgv4lh21lg8vl3z7acdyhh2mr2kj9g75wksj39pcp"))))
38 (build-system gnu-build-system)
39 (arguments '(#:configure-flags '("CC=gcc")))
40 (home-page "http://www.gnu.org/software/ed/")
41 (synopsis
42 "GNU ed, an implementation of the standard Unix editor")
43 (description
44 "GNU ed is a line-oriented text editor. It is used to create,
45display, modify and otherwise manipulate text files, both
46interactively and via shell scripts. A restricted version of ed,
47red, can only edit files in the current directory and cannot
48execute shell commands. Ed is the \"standard\" text editor in the
49sense that it is the original editor for Unix, and thus widely
50available. For most purposes, however, it is superseded by
51full-screen editors such as GNU Emacs or GNU Moe.")
52 (license "GPLv3+")))