14 src = fetchFromGitHub {
15 owner = "DeepSourceCorp";
18 hash = "sha256-6uNb4cQVerrlW/eUkjmlO1i1YKYX3qaVdo0i5cczt+I=";
21 nativeBuildInputs = [ installShellFiles ];
27 # Skip tests that require network access
29 "TestReportKeyValueWorkflow"
30 "TestReportAnalyzerTypeWorkflow"
31 "TestReportKeyValueFileWorkflow"
34 [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
36 vendorHash = "sha256-SsMq4ngq3sSOL28ysHTxTF4CT9sIcCIW7yIhBxIPrNs=";
41 "-X=main.version=${version}"
44 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
45 installShellCompletion --cmd deepsource \
46 --bash <($out/bin/deepsource completion bash) \
47 --fish <($out/bin/deepsource completion fish) \
48 --zsh <($out/bin/deepsource completion zsh)
51 doInstallCheck = true;
52 versionCheckProgramArg = [ "version" ];
53 nativeInstallCheckInputs = [
58 description = "Command line interface to DeepSource, the code health platform";
59 mainProgram = "deepsource";
60 homepage = "https://github.com/DeepSourceCorp/cli";
61 license = lib.licenses.bsd2;
62 maintainers = with lib.maintainers; [ nipeharefa ];