3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/safe/default.nix

32 lines
626 B
Nix
Raw Normal View History

{ 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";
2021-11-25 08:12:12 +00:00
version = "1.6.1";
2020-02-06 10:03:20 +00:00
src = fetchFromGitHub {
owner = "starkandwayne";
repo = "safe";
rev = "v${version}";
2021-11-25 08:12:12 +00:00
sha256 = "sha256-ankX4BeMvBEd0e01mQHfaPg4z1z+IZqELaSEJ5deF8Y=";
2020-02-06 10:03:20 +00:00
};
2021-11-25 08:12:12 +00:00
vendorSha256 = "sha256-7hX35FfFxfoiI/dSxWhZH8iJoRWa4slAJF0lULq8KL4=";
subPackages = [ "." ];
2020-02-06 10:03:20 +00:00
2021-08-21 09:23:51 +01:00
ldflags = [
"-X main.Version=${version}"
];
2020-02-06 10:03:20 +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 ];
};
}