34 lines
632 B
Nix
34 lines
632 B
Nix
{ callPackage
|
|
, lib
|
|
, fetchFromGitHub
|
|
, config
|
|
,
|
|
}:
|
|
let
|
|
inherit (builtins) readFile fromJSON;
|
|
common = opts: callPackage (import ./common.nix opts) { };
|
|
verStr = fromJSON (readFile ./version.json);
|
|
in
|
|
{
|
|
openssh = common {
|
|
pname = "openssh";
|
|
inherit config;
|
|
inherit (verStr) version;
|
|
|
|
src = fetchFromGitHub {
|
|
inherit (verStr) rev hash;
|
|
owner = "openssh";
|
|
repo = "openssh-portable";
|
|
};
|
|
|
|
doCheck =
|
|
if config.xinCI.enable
|
|
then
|
|
true
|
|
else false;
|
|
|
|
extraPatches = [ ./ssh-keysign-8.5.patch ];
|
|
extraMeta.maintainers = with lib.maintainers; [ qbit ];
|
|
};
|
|
}
|