depot/third_party/nixpkgs/pkgs/tools/security/safe/default.nix

32 lines
626 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "safe";
version = "1.6.1";
src = fetchFromGitHub {
owner = "starkandwayne";
repo = "safe";
rev = "v${version}";
sha256 = "sha256-ankX4BeMvBEd0e01mQHfaPg4z1z+IZqELaSEJ5deF8Y=";
};
vendorSha256 = "sha256-7hX35FfFxfoiI/dSxWhZH8iJoRWa4slAJF0lULq8KL4=";
subPackages = [ "." ];
ldflags = [
"-X main.Version=${version}"
];
meta = with lib; {
description = "A Vault CLI";
homepage = "https://github.com/starkandwayne/safe";
license = licenses.mit;
maintainers = with maintainers; [ eonpatapon ];
};
}