b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
27 lines
756 B
Nix
27 lines
756 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "sops";
|
|
version = "3.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "getsops";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-4K09wLV1+TvYTtvha6YyGhjlhEldWL1eVazNwcEhi3Q=";
|
|
};
|
|
|
|
vendorHash = "sha256-iRgLspYhwSVuL0yarPdjXCKfjK7TGDZeQCOcIYtNvzA=";
|
|
|
|
subPackages = [ "cmd/sops" ];
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/getsops/sops/v3/version.Version=${version}" ];
|
|
|
|
meta = with lib; {
|
|
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";
|
|
maintainers = [ maintainers.marsam ];
|
|
license = licenses.mpl20;
|
|
};
|
|
}
|