2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sops";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "3.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-10-09 19:29:22 +00:00
|
|
|
owner = "getsops";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "v${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-4K09wLV1+TvYTtvha6YyGhjlhEldWL1eVazNwcEhi3Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
vendorHash = "sha256-iRgLspYhwSVuL0yarPdjXCKfjK7TGDZeQCOcIYtNvzA=";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
subPackages = [ "cmd/sops" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/getsops/sops/v3/version.Version=${version}" ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/getsops/sops";
|
|
|
|
description = "Simple and flexible tool for managing secrets";
|
|
|
|
changelog = "https://github.com/getsops/sops/blob/v${version}/CHANGELOG.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
license = licenses.mpl20;
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|