mongodb-atlas-cli: merge with previous init pr
- update homepage - add changelog
This commit is contained in:
parent
1fd86cd0c5
commit
297dac5738
@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
lib,
|
lib,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
testers,
|
testers,
|
||||||
@ -12,15 +13,15 @@ buildGoModule rec {
|
|||||||
pname = "mongodb-atlas-cli";
|
pname = "mongodb-atlas-cli";
|
||||||
version = "1.46.2";
|
version = "1.46.2";
|
||||||
|
|
||||||
vendorHash = "sha256-z42tJJD/iK9GDnYxdeMYogaMviGABizxX9fdWL8vVik=";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mongodb";
|
owner = "mongodb";
|
||||||
repo = "mongodb-atlas-cli";
|
repo = "mongodb-atlas-cli";
|
||||||
rev = "refs/tags/atlascli/v${version}";
|
tag = "refs/tags/atlascli/v${version}";
|
||||||
sha256 = "sha256-yg6GSG4TXPj4n8s4TK/i7NveJXMAQczONSrLn39PKVI=";
|
hash = "sha256-yg6GSG4TXPj4n8s4TK/i7NveJXMAQczONSrLn39PKVI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-z42tJJD/iK9GDnYxdeMYogaMviGABizxX9fdWL8vVik=";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
ldflags = [
|
ldflags = [
|
||||||
@ -30,7 +31,9 @@ buildGoModule rec {
|
|||||||
"-X github.com/mongodb/mongodb-atlas-cli/atlascli/internal/version.Version=v${version}"
|
"-X github.com/mongodb/mongodb-atlas-cli/atlascli/internal/version.Version=v${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
subPackages = [ "cmd/atlas" ];
|
||||||
|
|
||||||
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd atlas \
|
installShellCompletion --cmd atlas \
|
||||||
--bash <($out/bin/atlas completion bash) \
|
--bash <($out/bin/atlas completion bash) \
|
||||||
--fish <($out/bin/atlas completion fish) \
|
--fish <($out/bin/atlas completion fish) \
|
||||||
@ -48,10 +51,14 @@ buildGoModule rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://www.mongodb.com/try/download/shell";
|
|
||||||
description = "CLI utility to manage MongoDB Atlas from the terminal";
|
description = "CLI utility to manage MongoDB Atlas from the terminal";
|
||||||
maintainers = with lib.maintainers; [ aduh95 ];
|
homepage = "https://github.com/mongodb/mongodb-atlas-cli";
|
||||||
|
changelog = "https://www.mongodb.com/docs/atlas/cli/current/atlas-cli-changelog/#atlas-cli-${version}";
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = with lib.maintainers; [
|
||||||
|
aduh95
|
||||||
|
iamanaws
|
||||||
|
];
|
||||||
mainProgram = "atlas";
|
mainProgram = "atlas";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user