···11-{ fetchurl, lib, stdenv, ncurses
22-}:
33-44-stdenv.mkDerivation (rec {
55- pname = "readline";
66- version = "6.2";
77-88- src = fetchurl {
99- url = "mirror://gnu/readline/readline-${version}.tar.gz";
1010- sha256 = "10ckm2bd2rkxhvdmj7nmbsylmihw0abwcsnxf8y27305183rd9kr";
1111- };
1212-1313- propagatedBuildInputs = [ncurses];
1414-1515- patchFlags = [ "-p0" ];
1616- patches =
1717- [ ./link-against-ncurses.patch
1818- ./no-arch_only.patch
1919- ./clang.patch
2020- ]
2121- ++
2222- (let
2323- patch = nr: sha256:
2424- fetchurl {
2525- url = "mirror://gnu/readline/readline-${version}-patches/readline62-${nr}";
2626- inherit sha256;
2727- };
2828- in
2929- import ./readline-6.2-patches.nix patch);
3030-3131- meta = {
3232- description = "Library for interactive line editing";
3333-3434- longDescription = ''
3535- The GNU Readline library provides a set of functions for use by
3636- applications that allow users to edit command lines as they are
3737- typed in. Both Emacs and vi editing modes are available. The
3838- Readline library includes additional functions to maintain a
3939- list of previously-entered command lines, to recall and perhaps
4040- reedit those lines, and perform csh-like history expansion on
4141- previous commands.
4242-4343- The history facilities are also placed into a separate library,
4444- the History library, as part of the build process. The History
4545- library may be used without Readline in applications which
4646- desire its capabilities.
4747- '';
4848-4949- homepage = "https://savannah.gnu.org/projects/readline/";
5050-5151- license = lib.licenses.gpl3Plus;
5252-5353- maintainers = [ ];
5454- branch = "6.2";
5555- platforms = lib.platforms.unix;
5656- };
5757-}
5858-5959-//
6060-6161-# Don't run the native `strip' when cross-compiling.
6262-(if stdenv.hostPlatform != stdenv.buildPlatform
6363- then { dontStrip = true; }
6464- else { }))
···10091009 rdf4store = throw "rdf4store has been removed from nixpkgs."; # Added 2019-12-21
10101010 rdiff_backup = rdiff-backup; # Added 2014-11-23
10111011 rdmd = dtools; # Added 2017-08-19
10121012+ readline5 = throw "readline-5 is no longer supported in nixpkgs, please use 'readline' for main supported version"; # Added 2022-02-20
10131013+ readline62 = throw "readline-6.2 is no longer supported in nixpkgs, please use 'readline' for main supported version"; # Added 2022-02-20
10121014 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
10131015 recordmydesktop = throw "recordmydesktop has been removed from nixpkgs, as it's unmaintained and uses deprecated libraries"; # Added 2019-12-10
10141016 redkite = throw "redkite was archived by upstream"; # Added 2021-04-12