blob: e619f98fe8783030154056d4c97979a2f15428d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, scip
}:
buildGoModule rec {
pname = "scip";
version = "0.2.3";
src = fetchFromGitHub {
owner = "sourcegraph";
repo = "scip";
rev = "v${version}";
hash = "sha256-0ErEA44vRRntWxajUKiQXqaKvQtqCPPXnI/sBktQyIo=";
};
vendorHash = "sha256-T0NYucDVBnTxROVYXlccOvHX74Cs6czXL/fy14I8MZc=";
ldflags = [
"-s"
"-w"
"-X=main.Reproducible=true"
];
postInstall = ''
mv $out/bin/{cmd,scip}
'';
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 ];
};
}
|