c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, lib
|
|
, openssh
|
|
, testers
|
|
, vault-ssh-plus
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "vault-ssh-plus";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "isometry";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-D38G947/1//AMmWghgw0TDzNcd4LUcCuyLBhRP7YFJY=";
|
|
};
|
|
|
|
vendorHash = "sha256-tNdr2xyxri7mj1bP6oVx1DGzwrzg84TpPCY0kHNkXLw=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/vault-ssh-plus $out/bin/vssh
|
|
wrapProgram $out/bin/vssh --prefix PATH : ${lib.makeBinPath [ openssh ]};
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = vault-ssh-plus;
|
|
command = "vssh --version";
|
|
version = "v${version}";
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/isometry/vault-ssh-plus";
|
|
changelog = "https://github.com/isometry/vault-ssh-plus/releases/tag/v${version}";
|
|
description = "Automatically use HashiCorp Vault SSH Client Key Signing with ssh(1)";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lesuisse ];
|
|
};
|
|
}
|