lol
1{ fetchurl, stdenv, ncurses }:
2
3stdenv.mkDerivation (rec {
4 name = "readline-6.2";
5
6 src = fetchurl {
7 url = "mirror://gnu/readline/${name}.tar.gz";
8 sha256 = "10ckm2bd2rkxhvdmj7nmbsylmihw0abwcsnxf8y27305183rd9kr";
9 };
10
11 propagatedBuildInputs = [ncurses];
12
13 patchFlags = "-p0";
14 patches =
15 [ ./link-against-ncurses.patch
16 ./no-arch_only.patch
17 ./clang.patch
18 ]
19 ++
20 (let
21 patch = nr: sha256:
22 fetchurl {
23 url = "mirror://gnu/readline/${name}-patches/readline62-${nr}";
24 inherit sha256;
25 };
26 in
27 import ./readline-6.2-patches.nix patch);
28
29 meta = {
30 description = "Library for interactive line editing";
31
32 longDescription = ''
33 The GNU Readline library provides a set of functions for use by
34 applications that allow users to edit command lines as they are
35 typed in. Both Emacs and vi editing modes are available. The
36 Readline library includes additional functions to maintain a
37 list of previously-entered command lines, to recall and perhaps
38 reedit those lines, and perform csh-like history expansion on
39 previous commands.
40
41 The history facilities are also placed into a separate library,
42 the History library, as part of the build process. The History
43 library may be used without Readline in applications which
44 desire its capabilities.
45 '';
46
47 homepage = http://savannah.gnu.org/projects/readline/;
48
49 license = stdenv.lib.licenses.gpl3Plus;
50
51 maintainers = [ ];
52 branch = "6.2";
53 };
54}
55
56//
57
58# Don't run the native `strip' when cross-compiling.
59(if (stdenv ? cross)
60 then { dontStrip = true; }
61 else { }))