bash-completion: Fix tests with musl. (#74813)
bash-completion: Fix tests with musl.
This commit is contained in:
commit
0106804da3
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub
|
{ stdenv, fetchFromGitHub
|
||||||
|
, lib
|
||||||
|
, fetchpatch
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, python3Packages
|
, python3Packages
|
||||||
, bashInteractive
|
, bashInteractive
|
||||||
@ -6,6 +8,7 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bash-completion";
|
pname = "bash-completion";
|
||||||
|
# TODO: Remove musl patch below upon next release!
|
||||||
version = "2.9";
|
version = "2.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -26,6 +29,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./0001-Revert-build-Do-cmake-pc-and-profile-variable-replac.patch
|
./0001-Revert-build-Do-cmake-pc-and-profile-variable-replac.patch
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isMusl [
|
||||||
|
# TODO: Remove when https://github.com/scop/bash-completion/commit/2cdac1b9f24df62a1fa80c1824ee8524c9b02393
|
||||||
|
# is availabe in a release in nixpkgs. see https://github.com/scop/bash-completion/issues/312.
|
||||||
|
# Fixes a test failure with musl.
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/scop/bash-completion/commit/2cdac1b9f24df62a1fa80c1824ee8524c9b02393.patch";
|
||||||
|
name = "bash-completion-musl-test_iconv-skip-option-completion-if-help-fails";
|
||||||
|
sha256 = "1l53d62zf01k625nzw3vcrxky93h7bzdpchgk4argxalrn17ckvb";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
# ignore ip_addresses because it tries to touch network
|
# ignore ip_addresses because it tries to touch network
|
||||||
|
Loading…
x
Reference in New Issue
Block a user