nixpkgs-suyu/pkgs/by-name/cn/cntb/package.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

26 lines
632 B
Nix

{ buildGoModule
, lib
, fetchFromGitHub
}: buildGoModule rec {
pname = "cntb";
version = "1.4.8";
src = fetchFromGitHub {
owner = "contabo";
repo = "cntb";
rev = version;
hash = "sha256-Cj1PO82JeztThFAHR4/8UyqKrodgxBqVDMDsun3iGDo=";
};
subPackages = [ "." ];
vendorHash = "sha256-4PhLUUtlnRh2dKkeVD7rZDDVP0eTDVAohvLLftQxQyE=";
meta = with lib; {
description = "CLI tool for managing your products from Contabo like VPS and VDS";
mainProgram = "cntb";
homepage = "https://github.com/contabo/cntb";
license = licenses.gpl3Only;
maintainers = with maintainers; [ aciceri ];
};
}