iwd: get rid of readline segfault (#429221)
This commit is contained in:
commit
cf8071bfe8
@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchgit,
|
||||
fetchpatch,
|
||||
autoreconfHook,
|
||||
pkg-config,
|
||||
ell,
|
||||
@ -13,6 +14,24 @@
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
let
|
||||
# fix segfault in iwctl with readline-8.3
|
||||
# https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00007.htmlP
|
||||
readline-patch = fetchpatch {
|
||||
url = "https://lists.gnu.org/archive/html/bug-readline/2025-07/txtmA7rksnmmi.txt";
|
||||
hash = "sha256-QSS1GUJ2i/bF2ksvUtw27oqFHuTHALi+7QwxMFt9ZaM=";
|
||||
stripLen = 2;
|
||||
};
|
||||
|
||||
myreadline = (
|
||||
readline.overrideAttrs (
|
||||
_final: prev: {
|
||||
patches = (prev.patches or [ ]) ++ [ readline-patch ];
|
||||
}
|
||||
)
|
||||
);
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "iwd";
|
||||
version = "3.9";
|
||||
@ -47,7 +66,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
buildInputs = [
|
||||
ell
|
||||
python3Packages.python
|
||||
readline
|
||||
myreadline
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ openssl ];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user