2017-06-28 22:25:05 +02:00
|
|
|
{ fetchurl, stdenv, ncurses
|
|
|
|
, buildPlatform, hostPlatform
|
|
|
|
}:
|
2009-02-23 19:10:41 +01:00
|
|
|
|
2011-07-01 15:20:12 +02:00
|
|
|
stdenv.mkDerivation (rec {
|
2014-03-20 12:53:20 +01:00
|
|
|
name = "readline-6.2";
|
2009-02-23 19:10:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/readline/${name}.tar.gz";
|
2014-03-20 12:53:20 +01:00
|
|
|
sha256 = "10ckm2bd2rkxhvdmj7nmbsylmihw0abwcsnxf8y27305183rd9kr";
|
2009-02-23 19:10:41 +01:00
|
|
|
};
|
|
|
|
|
2009-11-19 23:15:13 +01:00
|
|
|
propagatedBuildInputs = [ncurses];
|
2009-11-08 01:32:12 +01:00
|
|
|
|
|
|
|
patchFlags = "-p0";
|
|
|
|
patches =
|
2014-07-01 13:08:09 +02:00
|
|
|
[ ./link-against-ncurses.patch
|
|
|
|
./no-arch_only.patch
|
2014-08-17 22:17:13 +02:00
|
|
|
./clang.patch
|
2014-07-01 13:08:09 +02:00
|
|
|
]
|
2009-11-08 01:32:12 +01:00
|
|
|
++
|
|
|
|
(let
|
|
|
|
patch = nr: sha256:
|
|
|
|
fetchurl {
|
2014-03-20 12:53:20 +01:00
|
|
|
url = "mirror://gnu/readline/${name}-patches/readline62-${nr}";
|
2009-11-08 01:32:12 +01:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
in
|
2014-03-20 12:53:20 +01:00
|
|
|
import ./readline-6.2-patches.nix patch);
|
2009-11-08 01:32:12 +01:00
|
|
|
|
2009-02-23 19:10:41 +01:00
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Library for interactive line editing";
|
2009-02-23 19:10:41 +01: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 03:31:03 +01:00
|
|
|
The history facilities are also placed into a separate library,
|
2009-02-23 19:10:41 +01:00
|
|
|
the History library, as part of the build process. The History
|
|
|
|
library may be used without Readline in applications which
|
|
|
|
desire its capabilities.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://savannah.gnu.org/projects/readline/;
|
|
|
|
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2009-11-08 01:32:12 +01:00
|
|
|
|
2015-01-13 22:33:24 +01:00
|
|
|
maintainers = [ ];
|
2014-11-19 19:53:56 +01:00
|
|
|
branch = "6.2";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-02-23 19:10:41 +01:00
|
|
|
};
|
|
|
|
}
|
2011-07-01 15:20:12 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
# Don't run the native `strip' when cross-compiling.
|
2017-06-28 22:25:05 +02:00
|
|
|
(if hostPlatform != buildPlatform
|
2011-07-01 15:20:12 +02:00
|
|
|
then { dontStrip = true; }
|
|
|
|
else { }))
|