blob: 908d5abb8eecdceb9814c30de0b78fe2bb6f77a7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ buildGoModule
, fetchFromGitHub
, makeWrapper
, lib
, openssh
, testers
, vault-ssh-plus
}:
buildGoModule rec {
pname = "vault-ssh-plus";
version = "0.7.5";
src = fetchFromGitHub {
owner = "isometry";
repo = pname;
rev = "v${version}";
hash = "sha256-A6kgMQOGtrRf5lSbheyJ41fc5l9VkiPDVDYGHVh9Hic=";
};
vendorHash = "sha256-FBOmRXD6dW3B9LRKfCa1kzWmds71ndi9go8Lp7lOJlU=";
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)";
mainProgram = "vssh";
license = licenses.mit;
maintainers = with maintainers; [ lesuisse ];
};
}
|