xin/pkgs/openssh/default.nix

34 lines
632 B
Nix
Raw Normal View History

2023-09-12 08:44:05 -06:00
{ callPackage
, lib
, fetchFromGitHub
, config
2023-09-12 08:44:05 -06:00
,
}:
let
inherit (builtins) readFile fromJSON;
2023-09-12 08:44:05 -06:00
common = opts: callPackage (import ./common.nix opts) { };
verStr = fromJSON (readFile ./version.json);
2023-09-12 08:44:05 -06:00
in
{
openssh = common {
pname = "openssh";
2024-02-13 07:37:09 -07:00
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;
2023-09-12 08:44:05 -06:00
extraPatches = [ ./ssh-keysign-8.5.patch ];
extraMeta.maintainers = with lib.maintainers; [ qbit ];
};
}