vault-ssh-plus: init at 0.7.0
https://github.com/isometry/vault-ssh-plus
This commit is contained in:
parent
9cbb05d55f
commit
70648bee6e
2 changed files with 50 additions and 0 deletions
48
pkgs/tools/security/vault-ssh-plus/default.nix
Normal file
48
pkgs/tools/security/vault-ssh-plus/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue