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
624 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";
2023-03-01 14:38:39 +00:00
version = "1.8.0";
2020-02-06 10:03:20 +00:00
src = fetchFromGitHub {
owner = "starkandwayne";
repo = "safe";
rev = "v${version}";
2023-03-01 14:38:39 +00:00
sha256 = "sha256-sg0RyZ5HpYu7M11bNy17Sjxm7C3pkQX3I17edbALuvU=";
2020-02-06 10:03:20 +00:00
};
2023-03-01 14:38:39 +00:00
vendorHash = "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
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 ];
};
}