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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
626 B
Nix
Raw Normal View History

{ 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
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 ];
};
}