mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
readline5: recover, as it was still used
Partial revert of 30fef8a3cf
.
I probably confused that with unused readline62.
This commit is contained in:
parent
acba6b4da2
commit
b2887c0b5e
15
pkgs/development/libraries/readline/readline5.nix
Normal file
15
pkgs/development/libraries/readline/readline5.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ stdenv, fetchurl, ncurses }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "readline-5.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://gnu/readline/readline-5.2.tar.gz;
|
||||
sha256 = "0icz4hqqq8mlkwrpczyaha94kns0am9z0mh3a2913kg2msb8vs0j";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ncurses];
|
||||
|
||||
patches = stdenv.lib.optional stdenv.isDarwin ./shobj-darwin.patch;
|
||||
}
|
||||
|
11
pkgs/development/libraries/readline/shobj-darwin.patch
Normal file
11
pkgs/development/libraries/readline/shobj-darwin.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/support/shobj-conf.orig 2006-04-11 06:15:43.000000000 -0700
|
||||
+++ b/support/shobj-conf 2007-11-08 01:15:43.000000000 -0800
|
||||
@@ -171,7 +171,7 @@
|
||||
SHLIB_LIBSUFF='dylib'
|
||||
|
||||
case "${host_os}" in
|
||||
- darwin[78]*) SHOBJ_LDFLAGS=''
|
||||
+ darwin[789]*) SHOBJ_LDFLAGS=''
|
||||
SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
|
||||
;;
|
||||
*) SHOBJ_LDFLAGS='-dynamic'
|
@ -6104,6 +6104,8 @@ let
|
||||
readline = readline6;
|
||||
readline6 = readline63;
|
||||
|
||||
readline5 = callPackage ../development/libraries/readline/readline5.nix { };
|
||||
|
||||
readline62 = callPackage ../development/libraries/readline/readline6.nix { };
|
||||
|
||||
readline63 = callPackage ../development/libraries/readline/readline6.3.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user