mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
35 lines
1000 B
Nix
35 lines
1000 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kustomize-sops";
|
|
version = "4.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "viaduct-ai";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-piCsae2B+FC+wi/vCCtPY76O4eMXJeNufFo31QkHCAU=";
|
|
};
|
|
|
|
vendorHash = "sha256-vTP2wM7MqiSfP+3Gd0Ab5t0al5xL8rw3kl7bOT19zU4=";
|
|
|
|
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 ];
|
|
};
|
|
}
|