1 { fetchurl, lib, stdenv, ncurses }:
8 url = "mirror://gnu/readline/readline-6.3.tar.gz";
9 sha256 = "0hzxr9jxqqx5sxsv9vmlxdnvlr9vi4ih1avjb869hbs6p5qn1fjn";
12 outputs = [ "out" "dev" "man" "doc" "info" ];
15 propagatedBuildInputs = [ ncurses ];
17 patchFlags = [ "-p0" ];
19 configureFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
20 # This test requires running host code
21 "bash_cv_wcwidth_broken=no";
24 [ ./link-against-ncurses.patch
25 ./no-arch_only-6.3.patch
26 ] ++ lib.optional stdenv.hostPlatform.useAndroidPrebuilt ./android.patch
31 url = "mirror://gnu/readline/readline-6.3-patches/readline63-${nr}";
35 import ./readline-6.3-patches.nix patch);
38 description = "Library for interactive line editing";
41 The GNU Readline library provides a set of functions for use by
42 applications that allow users to edit command lines as they are
43 typed in. Both Emacs and vi editing modes are available. The
44 Readline library includes additional functions to maintain a
45 list of previously-entered command lines, to recall and perhaps
46 reedit those lines, and perform csh-like history expansion on
49 The history facilities are also placed into a separate library,
50 the History library, as part of the build process. The History
51 library may be used without Readline in applications which
52 desire its capabilities.
55 homepage = "https://savannah.gnu.org/projects/readline/";
57 license = licenses.gpl3Plus;
61 platforms = platforms.unix;