blob: 43fd3192011060f516c8f4ab9239b604da5bfcef (
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
|
{ lib, fetchFromGitHub, buildGoModule, go }:
buildGoModule rec {
pname = "kubelogin";
version = "0.1.3";
src = fetchFromGitHub {
owner = "Azure";
repo = pname;
rev = "v${version}";
sha256 = "sha256-5Y+xu84iNVFkrBc1qoTg8vMswvlflF9SobMy/Aw4mCA=";
};
vendorHash = "sha256-sVySHSj8vJEarQlhAR3vLdgysJNbmA2IAZ3ET2zRyAM=";
ldflags = [
"-X main.version=${version}"
"-X main.goVersion=${lib.getVersion go}"
];
meta = with lib; {
description = "A Kubernetes credential plugin implementing Azure authentication";
mainProgram = "kubelogin";
inherit (src.meta) homepage;
license = licenses.mit;
maintainers = [];
};
}
|