diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2023-03-18 15:54:49 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 15:54:49 -0300 |
commit | e5005453d3315aa58a04b901cbecbef5e241f7b1 (patch) | |
tree | c9f4b2b5d1e587ecd956dc31c801c1a5a97195bb /pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/rescript-editor-analysis.nix | |
parent | 5dd36e42111214846f3484634256b160b62a2557 (diff) |
vscode-extensions: refactor of extensions (#221878)
* vscode-extensions: fix indentation for editorconfig * vscode-extensions.chenglou92.rescript-vscode: renamed directory * vscode-extensions.WakaTime.vscode-wakatime: rename directory * vscode-extensions.hashicorp.terraform: rename directory * vscode-extensions.ms-python.python: rename directory * vscode-extensions.sumneko.lua: rename directory * vscode-extensions.ms-vscode.cpptools: rename directory * vscode-extensions.ms-vscode-remote.remote-ssh: rename directory * vscode-extensions.rust-lang.rust-analyzer: rename directory * vscode-extensions.vadimcn.vscode-lldb: rename directory * vscode-extensions.ms-dotnettools.csharp: rename directory * vscode-extensions.ms-vsliveshare.vsliveshare: rename directory * vscode-extensions.ms-toolsai.jupyter: rename directory
Diffstat (limited to 'pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/rescript-editor-analysis.nix')
-rw-r--r-- | pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/rescript-editor-analysis.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/rescript-editor-analysis.nix b/pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/rescript-editor-analysis.nix new file mode 100644 index 0000000000000..a87cd0943428e --- /dev/null +++ b/pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/rescript-editor-analysis.nix @@ -0,0 +1,34 @@ +{ lib, stdenv, fetchFromGitHub, bash, ocaml, dune_3, version }: + +stdenv.mkDerivation { + pname = "rescript-editor-analysis"; + inherit version; + + src = fetchFromGitHub { + owner = "rescript-lang"; + repo = "rescript-vscode"; + rev = version; + sha256 = "sha256-a8otK0BxZbl0nOp4QWQRkjb5fM85JA4nVkLuKAz71xU="; + }; + + nativeBuildInputs = [ ocaml dune_3 ]; + + # Skip testing phases because they need to download and install node modules + postPatch = '' + cd analysis + substituteInPlace Makefile \ + --replace "build: build-analysis-binary build-reanalyze build-tests" "build: build-analysis-binary" \ + --replace "test: test-analysis-binary test-reanalyze" "test: test-analysis-binary" + ''; + + installPhase = '' + install -D -m0555 rescript-editor-analysis.exe $out/bin/rescript-editor-analysis.exe + ''; + + meta = with lib; { + description = "Analysis binary for the ReScript VSCode plugin"; + homepage = "https://github.com/rescript-lang/rescript-vscode"; + maintainers = with maintainers; [ dlip jayesh-bhoot ]; + license = licenses.mit; + }; +} |