2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-02-06 10:03:20 +00:00
|
|
|
, buildGoPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
with builtins;
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "safe";
|
|
|
|
version = "1.5.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "starkandwayne";
|
|
|
|
repo = "safe";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "12gzxrnyl890h79z9yx23m1wwgy8ahm74q4qwi8n2nh7ydq6mn2d";
|
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/starkandwayne/safe";
|
|
|
|
|
2021-08-21 09:23:51 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|