504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
34 lines
998 B
Nix
34 lines
998 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kustomize-sops";
|
|
version = "4.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "viaduct-ai";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-fN83o84GbfMVG20c1/ROwxYPgnJ4g1U2wsM6j/VGtMY=";
|
|
};
|
|
|
|
vendorHash = "sha256-3AA7Zn9KYAJrcotiIpwm5eOfiuJuvLb0rl6FrcwGgSA=";
|
|
|
|
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 ];
|
|
};
|
|
}
|