3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/kustomize/kustomize-sops.nix

35 lines
1,002 B
Nix
Raw Normal View History

2021-02-21 02:25:38 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kustomize-sops";
2021-09-16 00:13:33 +01:00
version = "3.0.1";
2021-02-21 02:25:38 +00:00
src = fetchFromGitHub {
owner = "viaduct-ai";
repo = pname;
rev = "v${version}";
2021-09-16 00:13:33 +01:00
sha256 = "sha256-ZCEgv+2WC1XLDFdRtigkiWu81zLMHvmB8vvIBWN2UYY=";
2021-02-21 02:25:38 +00:00
};
2021-09-16 00:13:33 +01:00
vendorSha256 = "sha256-LFa0s2FBkw97P0CV+9JBmUAjaKVO+RzCX+iWGPUD9iA=";
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 ];
};
}