Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{
|
|
buildGoModule,
|
|
lib,
|
|
fetchFromGitHub,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "cntb";
|
|
version = "1.5.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "contabo";
|
|
repo = "cntb";
|
|
rev = "v${version}";
|
|
hash = "sha256-chO59HBpMXXFMIt+7UjUxE3WtzUak8VhD/ahEXT5l/k=";
|
|
# docs contains two files with the same name but different cases,
|
|
# this leads to a different hash on case insensitive filesystems (e.g. darwin)
|
|
# https://github.com/contabo/cntb/issues/34
|
|
postFetch = ''
|
|
rm -rf $out/openapi/docs
|
|
'';
|
|
};
|
|
|
|
subPackages = [ "." ];
|
|
|
|
vendorHash = "sha256-D0B1a2qbTGpAK1PkB+wqsReft14/SoKY3/I6k+pB2D0=";
|
|
|
|
ldflags = [
|
|
"-X contabo.com/cli/cntb/cmd.version=${src.rev}"
|
|
"-X contabo.com/cli/cntb/cmd.commit=${src.rev}"
|
|
"-X contabo.com/cli/cntb/cmd.date=1970-01-01T00:00:00Z"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|