xin/pkgs/openssh/default.nix
2024-02-13 07:37:09 -07:00

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 ];
};
}