2023-09-12 08:44:05 -06:00
|
|
|
{ callPackage
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2024-02-04 21:59:39 -07:00
|
|
|
, config
|
2023-09-12 08:44:05 -06:00
|
|
|
,
|
|
|
|
}:
|
|
|
|
let
|
2023-08-29 17:53:40 -06:00
|
|
|
inherit (builtins) readFile fromJSON;
|
2023-09-12 08:44:05 -06:00
|
|
|
common = opts: callPackage (import ./common.nix opts) { };
|
2023-08-29 17:53:40 -06:00
|
|
|
verStr = fromJSON (readFile ./version.json);
|
2023-09-12 08:44:05 -06:00
|
|
|
in
|
|
|
|
{
|
2023-08-29 07:35:37 -06:00
|
|
|
openssh = common {
|
|
|
|
pname = "openssh";
|
2024-02-13 07:37:09 -07:00
|
|
|
inherit config;
|
2023-08-29 17:53:40 -06:00
|
|
|
inherit (verStr) version;
|
2023-08-29 07:35:37 -06:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-08-29 17:53:40 -06:00
|
|
|
inherit (verStr) rev hash;
|
2023-08-29 07:35:37 -06:00
|
|
|
owner = "openssh";
|
|
|
|
repo = "openssh-portable";
|
|
|
|
};
|
|
|
|
|
2024-02-04 21:59:39 -07:00
|
|
|
doCheck =
|
|
|
|
if config.xinCI.enable
|
|
|
|
then
|
|
|
|
true
|
|
|
|
else false;
|
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
extraPatches = [ ./ssh-keysign-8.5.patch ];
|
|
|
|
extraMeta.maintainers = with lib.maintainers; [ qbit ];
|
2023-08-29 07:35:37 -06:00
|
|
|
};
|
|
|
|
}
|