depot/third_party/nixpkgs/pkgs/by-name/cn/cntb/package.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

30 lines
823 B
Nix

{ buildGoModule
, lib
, fetchFromGitHub
}: buildGoModule rec {
pname = "cntb";
version = "1.4.6";
src = fetchFromGitHub {
owner = "contabo";
repo = "cntb";
rev = "v${version}";
hash = "sha256-bvWNcEUSSHEk8fwwPdowATGEHIAj+TN8Z+A156sPVtA=";
# docs contains two files with the same name but different cases,
# this leads to a different hash on case insensitive filesystems (e.g. darwin)
postFetch = ''
rm -rf $out/openapi/docs
'';
};
subPackages = [ "." ];
vendorHash = "sha256-++y2C3jYuGZ0ovRFoxeqnx7S9EwoOZBJ5zxeLGWjkqc=";
meta = with lib; {
description = "CLI tool for managing your products from Contabo like VPS and VDS";
homepage = "https://github.com/contabo/cntb";
license = licenses.gpl3Only;
maintainers = with maintainers; [ aciceri ];
};
}