diff options
author | Thomas Gerbet <thomas@gerbet.me> | 2023-08-13 15:33:30 +0200 |
---|---|---|
committer | Thomas Gerbet <thomas@gerbet.me> | 2023-08-13 15:34:11 +0200 |
commit | 70648bee6e8896b641d86bfa9c5c26ded2c4b22c (patch) | |
tree | eb3ef2bde72ad5193fc377690754dfe5145e941f /pkgs/tools | |
parent | 9cbb05d55f8cd7ab47d8affb8569c49409a41f62 (diff) | |
download | nixpkgs-70648bee6e8896b641d86bfa9c5c26ded2c4b22c.tar nixpkgs-70648bee6e8896b641d86bfa9c5c26ded2c4b22c.tar.gz nixpkgs-70648bee6e8896b641d86bfa9c5c26ded2c4b22c.tar.bz2 nixpkgs-70648bee6e8896b641d86bfa9c5c26ded2c4b22c.tar.lz nixpkgs-70648bee6e8896b641d86bfa9c5c26ded2c4b22c.tar.xz nixpkgs-70648bee6e8896b641d86bfa9c5c26ded2c4b22c.tar.zst nixpkgs-70648bee6e8896b641d86bfa9c5c26ded2c4b22c.zip |
vault-ssh-plus: init at 0.7.0
https://github.com/isometry/vault-ssh-plus
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/security/vault-ssh-plus/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/tools/security/vault-ssh-plus/default.nix b/pkgs/tools/security/vault-ssh-plus/default.nix new file mode 100644 index 00000000000..384571bde26 --- /dev/null +++ b/pkgs/tools/security/vault-ssh-plus/default.nix @@ -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 ]; + }; +} |