depot/third_party/nixpkgs/pkgs/development/tools/kustomize/kustomize-sops.nix
Default email 86f042a55b Project import generated by Copybara.
GitOrigin-RevId: c7d0dbe094c988209edac801eb2a0cc21aa498d8
2021-02-22 21:28:39 +00:00

34 lines
1,004 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kustomize-sops";
version = "2.4.0";
src = fetchFromGitHub {
owner = "viaduct-ai";
repo = pname;
rev = "v${version}";
sha256 = "0sr4d7amwn62xywwn83y58ynl8xv6l1q6zwbky5rmy0qxk909bqp";
};
vendorSha256 = "0vn6vrczbdln7ngz061xixjwn899jn7p2a46770xqx44bh3f2lgv";
installPhase = ''
mkdir -p $out/lib/viaduct.ai/v1/ksops-exec/
mv $GOPATH/bin/kustomize-sops $out/lib/viaduct.ai/v1/ksops-exec/ksops-exec
'';
# Tests are broken in a nix environment
doCheck = false;
meta = with lib; {
description = "A Flexible Kustomize Plugin for SOPS Encrypted Resource";
longDescription = ''
KSOPS can be used to decrypt any Kubernetes resource, but is most commonly
used to decrypt encrypted Kubernetes Secrets and ConfigMaps.
'';
homepage = "https://github.com/viaduct-ai/kustomize-sops";
license = licenses.asl20;
maintainers = with maintainers; [ starcraft66 ];
};
}