2021-02-22 21:28:39 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kustomize-sops";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "3.0.2";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "viaduct-ai";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-6mLfMbYbdsjWHpfUHP3Q5nsqdMXo/82+A9PV8xWZBM0=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
vendorSha256 = "sha256-aRS+MwME72qIMyhnnIRqmrx5hcQ1V0pLIBJqSoR+Fkk=";
|
2021-02-22 21:28:39 +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 ];
|
|
|
|
};
|
|
|
|
}
|