2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2021-11-25 09:12:12 +01:00
|
|
|
, buildGoModule
|
2020-02-06 11:03:20 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2021-11-25 09:12:12 +01:00
|
|
|
buildGoModule rec {
|
2020-02-06 11:03:20 +01:00
|
|
|
pname = "safe";
|
2021-11-25 09:12:12 +01:00
|
|
|
version = "1.6.1";
|
2020-02-06 11:03:20 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "starkandwayne";
|
|
|
|
repo = "safe";
|
|
|
|
rev = "v${version}";
|
2021-11-25 09:12:12 +01:00
|
|
|
sha256 = "sha256-ankX4BeMvBEd0e01mQHfaPg4z1z+IZqELaSEJ5deF8Y=";
|
2020-02-06 11:03:20 +01:00
|
|
|
};
|
|
|
|
|
2021-11-25 09:12:12 +01:00
|
|
|
vendorSha256 = "sha256-7hX35FfFxfoiI/dSxWhZH8iJoRWa4slAJF0lULq8KL4=";
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
2020-02-06 11:03:20 +01:00
|
|
|
|
2021-08-21 10:23:51 +02:00
|
|
|
ldflags = [
|
|
|
|
"-X main.Version=${version}"
|
|
|
|
];
|
2020-02-06 11:03:20 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-02-06 11:03:20 +01:00
|
|
|
description = "A Vault CLI";
|
|
|
|
homepage = "https://github.com/starkandwayne/safe";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ eonpatapon ];
|
|
|
|
};
|
|
|
|
}
|