diff options
author | figsoda <figsoda@pm.me> | 2023-05-22 12:04:02 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-05-22 12:05:42 -0400 |
commit | ef6a9bcf32b4b200e6e284f971bc89693b87bf34 (patch) | |
tree | 292b742f6b6a86843fd350b5ea541bef77a5b189 | |
parent | f3ff55097e6b92e155a27a7a96f1ef264118f1e0 (diff) |
scip: init at 0.2.3
https://github.com/sourcegraph/scip
-rw-r--r-- | pkgs/development/tools/misc/scip/default.nix | 45 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/scip/default.nix b/pkgs/development/tools/misc/scip/default.nix new file mode 100644 index 0000000000000..e619f98fe8783 --- /dev/null +++ b/pkgs/development/tools/misc/scip/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1f38640fd8f61..44b76625e2510 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -40161,6 +40161,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; + scip = callPackage ../development/tools/misc/scip { }; + scriptisto = callPackage ../development/tools/misc/scriptisto { }; sequeler = callPackage ../applications/misc/sequeler { }; |