bash: 5.2p21 -> 5.2p26

While at it exposed patch suffix as a `version` attribute.
This commit is contained in:
Sergei Trofimovich 2024-01-17 11:08:09 +00:00
parent 15ee476004
commit 4181c1f587
2 changed files with 9 additions and 3 deletions

View File

@ -22,11 +22,12 @@ let
});
in
stdenv.mkDerivation rec {
name = "bash-${lib.optionalString interactive "interactive-"}${version}-p${toString (builtins.length upstreamPatches)}";
version = "5.2";
pname = "bash${lib.optionalString interactive "-interactive"}";
version = "5.2${patch_suffix}";
patch_suffix = "p${toString (builtins.length upstreamPatches)}";
src = fetchurl {
url = "mirror://gnu/bash/bash-${version}.tar.gz";
url = "mirror://gnu/bash/bash-${lib.removeSuffix patch_suffix version}.tar.gz";
sha256 = "sha256-oTnBZt9/9EccXgczBRZC7lVWwcyKSnjxRVg8XIGrMvs=";
};

View File

@ -22,4 +22,9 @@ patch: [
(patch "019" "10njgv5mrc5rhsp5lvxcbm0pnzn59a8spi2nhdasifyl1a32cp1j")
(patch "020" "07f0wlmqjdfarp44w3gj9gdqbqm5x20rvlhpn34ngklmxcm2bz5n")
(patch "021" "1kahfqqalcwi4m73pg3ssz6lh0kcqsqax09myac7a15d2y0vhd43")
(patch "022" "0w74aym0g1fh48864a3qxh89f26iaq7wsbg7244c6kjr94527dbq")
(patch "023" "1lywjqbc36j5pdzfcvnz1zy30j76aqmsm190p888av0hw815b45g")
(patch "024" "1hq23djqbr7s9y2324jq9mxr5bwdkmgizn3zgpchbsqp054k85cp")
(patch "025" "0x9hc4silzl4d3zw4p43i5dm7w86k50j47f87lracwfgwy3z8f2i")
(patch "026" "1b1fhm1dsi67r8ip17s0xvx2qq31fsxc1g9n3r931dd0k9a1zvln")
]