accommodate newer dropbear in nixpkgs 25.05
This commit is contained in:
parent
6a89b5b4d4
commit
e1d8c5de61
@ -141,20 +141,22 @@ extraPkgs
|
||||
dropbear = crossOnly prev.dropbear (
|
||||
d:
|
||||
d.overrideAttrs (o: rec {
|
||||
# nixpkgs 25.05 contains newer dropbear (2025.87) than this,
|
||||
# we can drop this override when that's ready
|
||||
version = "2024.85";
|
||||
src = final.fetchurl {
|
||||
url = "https://matt.ucc.asn.au/dropbear/releases/dropbear-${version}.tar.bz2";
|
||||
sha256 = "sha256-hrA2xDOmnYnOUeuuM11lxHc4zPkNE+XrD+qDLlVtpQI=";
|
||||
};
|
||||
patches =
|
||||
# need to update nixpkgs patch for new version of dropbear
|
||||
# in 24.11 we need to update nixpkgs patch for new version of dropbear
|
||||
let
|
||||
passPath = final.runCommand "pass-path" { } ''
|
||||
sed < ${builtins.head o.patches} -e 's,svr-chansession.c,src/svr-chansession.c,g' > $out
|
||||
'';
|
||||
in
|
||||
[
|
||||
passPath
|
||||
(if (lib.versionOlder o.version "2024") then passPath else (builtins.head o.patches))
|
||||
./pkgs/dropbear/add-authkeyfile-option.patch
|
||||
];
|
||||
postPatch = ''
|
||||
|
Loading…
Reference in New Issue
Block a user