depot/third_party/nixpkgs/pkgs/development/tools/kustomize/kustomize-sops.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

34 lines
1,000 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kustomize-sops";
version = "4.1.1";
src = fetchFromGitHub {
owner = "viaduct-ai";
repo = pname;
rev = "v${version}";
sha256 = "sha256-jwOyOGSnUgk9+cD+cGj1/ZzQ84HAdAn0HMy3CLPs1U0=";
};
vendorHash = "sha256-tNYPgXFDJuNRlrVE0ywg77goNzfoWHFVzOG9mHqK3q8=";
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 ];
};
}