xin/pkgs/openssh/default.nix

26 lines
517 B
Nix
Raw Permalink Normal View History

2023-09-12 08:44:05 -06:00
{ callPackage
, lib
, fetchFromGitHub
,
}:
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";
inherit (verStr) version;
src = fetchFromGitHub {
inherit (verStr) rev hash;
owner = "openssh";
repo = "openssh-portable";
};
2023-09-12 08:44:05 -06:00
extraPatches = [ ./ssh-keysign-8.5.patch ];
extraMeta.maintainers = with lib.maintainers; [ qbit ];
};
}