vault-ssh-plus: init at 0.7.0

https://github.com/isometry/vault-ssh-plus
This commit is contained in:
Thomas Gerbet 2023-08-13 15:33:30 +02:00
parent 9cbb05d55f
commit 70648bee6e
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{ 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 ];
};
}

View File

@ -40998,6 +40998,8 @@ with pkgs;
vault-medusa = callPackage ../tools/security/vault-medusa { };
vault-ssh-plus = callPackage ../tools/security/vault-ssh-plus { };
vault-bin = callPackage ../tools/security/vault/vault-bin.nix { };
vaultenv = haskell.lib.justStaticExecutables haskellPackages.vaultenv;