mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
63 lines
1.5 KiB
Nix
63 lines
1.5 KiB
Nix
{ buildGoModule
|
|
, dependabot-cli
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, lib
|
|
, testers
|
|
}:
|
|
let
|
|
pname = "dependabot-cli";
|
|
version = "1.41.0";
|
|
in
|
|
buildGoModule {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dependabot";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-CnSDvLcLupWKBp1Wr6E9BScA8VsBlfmmfPwh8cyERZg=";
|
|
};
|
|
|
|
vendorHash = "sha256-vN5r1OtHT16LeJ6iPmHmXTx9Oo+WALhV4PWqzMiUwSA=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/dependabot/cli/cmd/dependabot/internal/cmd.version=v${version}"
|
|
];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd dependabot \
|
|
--bash <($out/bin/dependabot completion bash) \
|
|
--fish <($out/bin/dependabot completion fish) \
|
|
--zsh <($out/bin/dependabot completion zsh)
|
|
'';
|
|
|
|
checkFlags = [
|
|
"-skip=TestIntegration|TestNewProxy_customCert|TestRun"
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
$out/bin/dependabot --help
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = dependabot-cli;
|
|
command = "dependabot --version";
|
|
version = "v${version}";
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/dependabot/cli/releases/tag/v${version}";
|
|
description = "Tool for testing and debugging Dependabot update jobs";
|
|
mainProgram = "dependabot";
|
|
homepage = "https://github.com/dependabot/cli";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ l0b0 ];
|
|
};
|
|
}
|