nixpkgs/pkgs/applications/networking/cluster/kubectl-cnpg/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

29 lines
680 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "kubectl-cnpg";
version = "1.22.2";
src = fetchFromGitHub {
owner = "cloudnative-pg";
repo = "cloudnative-pg";
rev = "v${version}";
hash = "sha256-xR61PYUqiVtPTghEEeSWXs/Apx7VVWDgi6Pgx/EBQzQ=";
};
vendorHash = "sha256-u5ou9rY/JBrV0EF/nJX8u/Fqde/WZe21EcsNLwvtqB0=";
subPackages = [ "cmd/kubectl-cnpg" ];
meta = with lib; {
homepage = "https://cloudnative-pg.io/";
description = "Plugin for kubectl to manage a CloudNativePG cluster in Kubernetes";
mainProgram = "kubectl-cnpg";
license = licenses.asl20;
maintainers = with maintainers; [ devusb ];
};
}