Files
nixpkgs/pkgs/by-name/sr/src-cli/package.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1008 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
stdenv,
xorg,
testers,
src-cli,
}:
buildGoModule rec {
pname = "src-cli";
version = "6.11.0";
src = fetchFromGitHub {
owner = "sourcegraph";
repo = "src-cli";
rev = version;
hash = "sha256-uJAiNBrZmaDV7Etr3xAkDHXs7H9YZYLsyTcnaHGVJfI=";
};
vendorHash = "sha256-H8xJtlAWkk7AcZBYR/xggs/Ut0cnHC49XiScEcdlkMc=";
subPackages = [
"cmd/src"
];
ldflags = [
"-s"
"-w"
"-X=github.com/sourcegraph/src-cli/internal/version.BuildTag=${version}"
];
passthru.tests = {
version = testers.testVersion {
package = src-cli;
command = "src version -client-only";
};
};
meta = {
description = "Sourcegraph CLI";
homepage = "https://github.com/sourcegraph/src-cli";
changelog = "https://github.com/sourcegraph/src-cli/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
keegancsmith
];
mainProgram = "src";
};
}