2021-01-21 17:00:13 +00:00
|
|
|
{ fetchurl, lib, stdenv, ncurses
|
2017-06-28 21:25:05 +01:00
|
|
|
}:
|
2009-02-23 18:10:41 +00:00
|
|
|
|
2011-07-01 14:20:12 +01:00
|
|
|
stdenv.mkDerivation (rec {
|
2014-03-20 11:53:20 +00:00
|
|
|
name = "readline-6.2";
|
2009-02-23 18:10:41 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/readline/${name}.tar.gz";
|
2014-03-20 11:53:20 +00:00
|
|
|
sha256 = "10ckm2bd2rkxhvdmj7nmbsylmihw0abwcsnxf8y27305183rd9kr";
|
2009-02-23 18:10:41 +00:00
|
|
|
};
|
|
|
|
|
2009-11-19 22:15:13 +00:00
|
|
|
propagatedBuildInputs = [ncurses];
|
2009-11-08 00:32:12 +00:00
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
patchFlags = [ "-p0" ];
|
2009-11-08 00:32:12 +00:00
|
|
|
patches =
|
2014-07-01 12:08:09 +01:00
|
|
|
[ ./link-against-ncurses.patch
|
|
|
|
./no-arch_only.patch
|
2014-08-17 21:17:13 +01:00
|
|
|
./clang.patch
|
2014-07-01 12:08:09 +01:00
|
|
|
]
|
2009-11-08 00:32:12 +00:00
|
|
|
++
|
|
|
|
(let
|
|
|
|
patch = nr: sha256:
|
|
|
|
fetchurl {
|
2014-03-20 11:53:20 +00:00
|
|
|
url = "mirror://gnu/readline/${name}-patches/readline62-${nr}";
|
2009-11-08 00:32:12 +00:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
in
|
2014-03-20 11:53:20 +00:00
|
|
|
import ./readline-6.2-patches.nix patch);
|
2009-11-08 00:32:12 +00:00
|
|
|
|
2009-02-23 18:10:41 +00:00
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Library for interactive line editing";
|
2009-02-23 18:10:41 +00:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
The GNU Readline library provides a set of functions for use by
|
|
|
|
applications that allow users to edit command lines as they are
|
|
|
|
typed in. Both Emacs and vi editing modes are available. The
|
|
|
|
Readline library includes additional functions to maintain a
|
|
|
|
list of previously-entered command lines, to recall and perhaps
|
|
|
|
reedit those lines, and perform csh-like history expansion on
|
|
|
|
previous commands.
|
|
|
|
|
2014-12-30 02:31:03 +00:00
|
|
|
The history facilities are also placed into a separate library,
|
2009-02-23 18:10:41 +00:00
|
|
|
the History library, as part of the build process. The History
|
|
|
|
library may be used without Readline in applications which
|
|
|
|
desire its capabilities.
|
|
|
|
'';
|
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://savannah.gnu.org/projects/readline/";
|
2009-02-23 18:10:41 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2009-11-08 00:32:12 +00:00
|
|
|
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = [ ];
|
2014-11-19 18:53:56 +00:00
|
|
|
branch = "6.2";
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2009-02-23 18:10:41 +00:00
|
|
|
};
|
|
|
|
}
|
2011-07-01 14:20:12 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
# Don't run the native `strip' when cross-compiling.
|
2018-08-20 19:43:41 +01:00
|
|
|
(if stdenv.hostPlatform != stdenv.buildPlatform
|
2011-07-01 14:20:12 +01:00
|
|
|
then { dontStrip = true; }
|
|
|
|
else { }))
|