src-cli: init at 5.0.3

https://github.com/sourcegraph/src-cli
This commit is contained in:
figsoda 2023-06-21 11:44:46 -04:00
parent f7549bd89e
commit 62441a9316
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, src-cli
}:
buildGoModule rec {
pname = "src-cli";
version = "5.0.3";
src = fetchFromGitHub {
owner = "sourcegraph";
repo = "src-cli";
rev = version;
hash = "sha256-KqCH4f9QPfr/Hm4phR9qeCV925RkOawGnbCx8wz/QwE=";
};
vendorHash = "sha256-NMLrBYGscZexnR43I4Ku9aqzJr38z2QAnZo0RouHFrc=";
subPackages = [
"cmd/src"
];
ldflags = [
"-s"
"-w"
"-X=github.com/sourcegraph/src-cli/internal/version.BuildTag=${version}"
];
__darwinAllowLocalNetworking = true;
passthru.tests = {
version = testers.testVersion {
package = src-cli;
command = "src version || true";
};
};
meta = with lib; {
description = "Sourcegraph CLI";
homepage = "https://github.com/sourcegraph/src-cli";
changelog = "https://github.com/sourcegraph/src-cli/blob/${src.rev}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
mainProgram = "src";
};
}

View File

@ -19529,6 +19529,8 @@ with pkgs;
sqlmap = with python3Packages; toPythonApplication sqlmap;
src-cli = callPackage ../development/tools/misc/src-cli { };
sselp = callPackage ../tools/X11/sselp{ };
statix = callPackage ../tools/nix/statix { };