From 044a8a9a5ab77c21a38d8c86cbd4fcde1cb6afc3 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Mon, 18 Sep 2023 12:13:13 +0200 Subject: [PATCH] cntb: init at 1.4.6 --- pkgs/by-name/cn/cntb/package.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/by-name/cn/cntb/package.nix diff --git a/pkgs/by-name/cn/cntb/package.nix b/pkgs/by-name/cn/cntb/package.nix new file mode 100644 index 000000000000..78e5f16f303c --- /dev/null +++ b/pkgs/by-name/cn/cntb/package.nix @@ -0,0 +1,30 @@ +{ 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 ]; + }; +}