Merge pull request #161080 from FliegendeWurst/readline-cleanup

authored by Artturi and committed by GitHub 91090849 0f4537bf

+2 -136
-21
pkgs/development/libraries/readline/5.x.nix
··· 1 - { lib, stdenv, fetchurl, ncurses }: 2 - 3 - stdenv.mkDerivation rec { 4 - pname = "readline"; 5 - version = "5.2"; 6 - 7 - src = fetchurl { 8 - url = "mirror://gnu/readline/readline-${version}.tar.gz"; 9 - sha256 = "0icz4hqqq8mlkwrpczyaha94kns0am9z0mh3a2913kg2msb8vs0j"; 10 - }; 11 - 12 - propagatedBuildInputs = [ncurses]; 13 - 14 - patches = lib.optional stdenv.isDarwin ./shobj-darwin.patch; 15 - 16 - meta = with lib; { 17 - branch = "5"; 18 - platforms = platforms.unix; 19 - license = licenses.gpl2; 20 - }; 21 - }
-64
pkgs/development/libraries/readline/6.2.nix
··· 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 { }))
-13
pkgs/development/libraries/readline/clang.patch
··· 1 - diff --git a/support/shobj-conf b/support/shobj-conf 2 - index 5a63e80..4b2a741 100644 3 - --- support/shobj-conf 4 - +++ support/shobj-conf 5 - @@ -189,7 +189,7 @@ darwin*|macosx*) 6 - darwin[789]*|darwin10*) SHOBJ_LDFLAGS='' 7 - SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v' 8 - ;; 9 - - *) SHOBJ_LDFLAGS='-dynamic' 10 - + *) SHOBJ_LDFLAGS='-dynamiclib' 11 - SHLIB_XLDFLAGS='-arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v' 12 - ;; 13 - esac
-14
pkgs/development/libraries/readline/no-arch_only.patch
··· 1 - diff -ru -x '*~' readline-6.2-orig/support/shobj-conf readline-6.2/support/shobj-conf 2 - --- support/shobj-conf 2009-10-28 14:20:21.000000000 +0100 3 - +++ support/shobj-conf 2014-07-01 13:03:28.000000000 +0200 4 - @@ -168,8 +168,8 @@ 5 - SHLIB_LIBVERSION='$(SHLIB_MAJOR)$(SHLIB_MINOR).$(SHLIB_LIBSUFF)' 6 - SHLIB_LIBSUFF='dylib' 7 - 8 - - SHOBJ_LDFLAGS='-dynamiclib -dynamic -undefined dynamic_lookup -arch_only `/usr/bin/arch`' 9 - - SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v' 10 - + SHOBJ_LDFLAGS='-dynamiclib -dynamic -undefined dynamic_lookup' 11 - + SHLIB_XLDFLAGS='-dynamiclib -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v' 12 - 13 - SHLIB_LIBS='-lncurses' # see if -lcurses works on MacOS X 10.1 14 - ;;
-9
pkgs/development/libraries/readline/readline-6.2-patches.nix
··· 1 - # Automatically generated by `update-patch-set.sh'; do not edit. 2 - 3 - patch: [ 4 - (patch "001" "1qxl74f4n0hv4a807byrgbk4ixd8m50apj3922q2ss9pfi0nra1q") 5 - (patch "002" "1m670g2xzib6r81315q9r24nh9brmxkpq07acch1fwxmih94jqqy") 6 - (patch "003" "0x13c9wir4r44v2vdg96y0ahn8kl3wcmb5y0xn15yvid6pzk28fb") 7 - (patch "004" "0xjlkxfssfsd6jwbqhfjs4hybcps0b9zgz8v86vbhnzag4j39g89") 8 - (patch "005" "1x61bjl3wgs1gwla9b3y1hh12m1j5qlbis22258mljjl9mg900pg") 9 - ]
-11
pkgs/development/libraries/readline/shobj-darwin.patch
··· 1 - --- a/support/shobj-conf.orig 2006-04-11 06:15:43.000000000 -0700 2 - +++ b/support/shobj-conf 2007-11-08 01:15:43.000000000 -0800 3 - @@ -171,7 +171,7 @@ 4 - SHLIB_LIBSUFF='dylib' 5 - 6 - case "${host_os}" in 7 - - darwin[78]*) SHOBJ_LDFLAGS='' 8 - + darwin[789]*) SHOBJ_LDFLAGS='' 9 - SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v' 10 - ;; 11 - *) SHOBJ_LDFLAGS='-dynamic'
+2
pkgs/top-level/aliases.nix
··· 1009 1009 rdf4store = throw "rdf4store has been removed from nixpkgs."; # Added 2019-12-21 1010 1010 rdiff_backup = rdiff-backup; # Added 2014-11-23 1011 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 1012 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 1013 1015 recordmydesktop = throw "recordmydesktop has been removed from nixpkgs, as it's unmaintained and uses deprecated libraries"; # Added 2019-12-10 1014 1016 redkite = throw "redkite was archived by upstream"; # Added 2021-04-12
-4
pkgs/top-level/all-packages.nix
··· 19721 19721 readline = readline6; 19722 19722 readline6 = readline63; 19723 19723 19724 - readline5 = callPackage ../development/libraries/readline/5.x.nix { }; 19725 - 19726 - readline62 = callPackage ../development/libraries/readline/6.2.nix { }; 19727 - 19728 19724 readline63 = callPackage ../development/libraries/readline/6.3.nix { }; 19729 19725 19730 19726 readline70 = callPackage ../development/libraries/readline/7.0.nix { };