···1-{ fetchurl, lib, stdenv, ncurses
2-}:
3-4-stdenv.mkDerivation (rec {
5- pname = "readline";
6- version = "6.2";
7-8- src = fetchurl {
9- url = "mirror://gnu/readline/readline-${version}.tar.gz";
10- sha256 = "10ckm2bd2rkxhvdmj7nmbsylmihw0abwcsnxf8y27305183rd9kr";
11- };
12-13- propagatedBuildInputs = [ncurses];
14-15- patchFlags = [ "-p0" ];
16- patches =
17- [ ./link-against-ncurses.patch
18- ./no-arch_only.patch
19- ./clang.patch
20- ]
21- ++
22- (let
23- patch = nr: sha256:
24- fetchurl {
25- url = "mirror://gnu/readline/readline-${version}-patches/readline62-${nr}";
26- inherit sha256;
27- };
28- in
29- import ./readline-6.2-patches.nix patch);
30-31- meta = {
32- description = "Library for interactive line editing";
33-34- longDescription = ''
35- The GNU Readline library provides a set of functions for use by
36- applications that allow users to edit command lines as they are
37- typed in. Both Emacs and vi editing modes are available. The
38- Readline library includes additional functions to maintain a
39- list of previously-entered command lines, to recall and perhaps
40- reedit those lines, and perform csh-like history expansion on
41- previous commands.
42-43- The history facilities are also placed into a separate library,
44- the History library, as part of the build process. The History
45- library may be used without Readline in applications which
46- desire its capabilities.
47- '';
48-49- homepage = "https://savannah.gnu.org/projects/readline/";
50-51- license = lib.licenses.gpl3Plus;
52-53- maintainers = [ ];
54- branch = "6.2";
55- platforms = lib.platforms.unix;
56- };
57-}
58-59-//
60-61-# Don't run the native `strip' when cross-compiling.
62-(if stdenv.hostPlatform != stdenv.buildPlatform
63- then { dontStrip = true; }
64- else { }))
···1009 rdf4store = throw "rdf4store has been removed from nixpkgs."; # Added 2019-12-21
1010 rdiff_backup = rdiff-backup; # Added 2014-11-23
1011 rdmd = dtools; # Added 2017-08-19
001012 readline80 = throw "readline-8.0 is no longer supported in nixpkgs, please use 'readline' for main supported version or 'readline81' for most recent version"; # Added 2021-04-22
1013 recordmydesktop = throw "recordmydesktop has been removed from nixpkgs, as it's unmaintained and uses deprecated libraries"; # Added 2019-12-10
1014 redkite = throw "redkite was archived by upstream"; # Added 2021-04-12
···1009 rdf4store = throw "rdf4store has been removed from nixpkgs."; # Added 2019-12-21
1010 rdiff_backup = rdiff-backup; # Added 2014-11-23
1011 rdmd = dtools; # Added 2017-08-19
1012+ readline5 = throw "readline-5 is no longer supported in nixpkgs, please use 'readline' for main supported version"; # Added 2022-02-20
1013+ readline62 = throw "readline-6.2 is no longer supported in nixpkgs, please use 'readline' for main supported version"; # Added 2022-02-20
1014 readline80 = throw "readline-8.0 is no longer supported in nixpkgs, please use 'readline' for main supported version or 'readline81' for most recent version"; # Added 2021-04-22
1015 recordmydesktop = throw "recordmydesktop has been removed from nixpkgs, as it's unmaintained and uses deprecated libraries"; # Added 2019-12-10
1016 redkite = throw "redkite was archived by upstream"; # Added 2021-04-12