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