2021-02-21 02:25:38 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kustomize-sops";
|
2023-05-29 18:16:13 +00:00
|
|
|
version = "4.2.1";
|
2021-02-21 02:25:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "viaduct-ai";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-05-29 18:16:13 +00:00
|
|
|
sha256 = "sha256-Jm4mA91fyXQ8eScvRGDAmCBFVqT2GP57XIBZQo/bApg=";
|
2021-02-21 02:25:38 +00:00
|
|
|
};
|
|
|
|
|
2023-04-11 05:45:35 +00:00
|
|
|
vendorHash = "sha256-tNYPgXFDJuNRlrVE0ywg77goNzfoWHFVzOG9mHqK3q8=";
|
2021-02-21 02:25:38 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|