Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 49 lines 1.0 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 testers, 6 scip, 7}: 8 9buildGoModule rec { 10 pname = "scip"; 11 version = "0.5.1"; 12 13 src = fetchFromGitHub { 14 owner = "sourcegraph"; 15 repo = "scip"; 16 rev = "v${version}"; 17 hash = "sha256-UXa5lMFenynHRIvA4MOXkjMVd705LBWs372s3MFAc+8="; 18 }; 19 20 vendorHash = "sha256-6vx3Dt0ZNR0rY5bEUF5X1hHj/gv21920bhfd+JJ9bYk="; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 "-X=main.Reproducible=true" 26 ]; 27 28 # update documentation to fix broken test 29 postPatch = '' 30 substituteInPlace docs/CLI.md \ 31 --replace 0.3.0 0.3.1 32 ''; 33 34 passthru.tests = { 35 version = testers.testVersion { 36 package = scip; 37 version = "v${version}"; 38 }; 39 }; 40 41 meta = with lib; { 42 description = "SCIP Code Intelligence Protocol CLI"; 43 mainProgram = "scip"; 44 homepage = "https://github.com/sourcegraph/scip"; 45 changelog = "https://github.com/sourcegraph/scip/blob/${src.rev}/CHANGELOG.md"; 46 license = licenses.asl20; 47 maintainers = with maintainers; [ figsoda ]; 48 }; 49}