mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 13:53:05 +00:00
8b603ef9f9
Diff: https://github.com/sourcegraph/scip/compare/v0.3.1...v0.3.2 Changelog: https://github.com/sourcegraph/scip/blob/v0.3.2/CHANGELOG.md
48 lines
988 B
Nix
48 lines
988 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, scip
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "scip";
|
|
version = "0.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sourcegraph";
|
|
repo = "scip";
|
|
rev = "v${version}";
|
|
hash = "sha256-lZ3W2Z69P5QQN+PgF9+Apj/uEXWaTS+5QOg17m1mGPU=";
|
|
};
|
|
|
|
vendorHash = "sha256-3Tq2cexcxHjaH6WIz2hneE1QeBSGoMINBncKbqxODxQ=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.Reproducible=true"
|
|
];
|
|
|
|
# update documentation to fix broken test
|
|
postPatch = ''
|
|
substituteInPlace docs/CLI.md \
|
|
--replace 0.3.0 0.3.1
|
|
'';
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion {
|
|
package = scip;
|
|
version = "v${version}";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "SCIP Code Intelligence Protocol CLI";
|
|
homepage = "https://github.com/sourcegraph/scip";
|
|
changelog = "https://github.com/sourcegraph/scip/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|