From 6d8d0380edf70db9616d1f9297e7129e9b53772b Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 30 Sep 2024 08:00:18 +0200 Subject: [PATCH] =?UTF-8?q?vscode-extensions.chenglou92.rescript-vscode:?= =?UTF-8?q?=201.54.0=20=E2=86=92=201.58.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chenglou92.rescript-vscode/default.nix | 4 ++-- .../rescript-editor-analysis.nix | 12 ++++-------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/default.nix b/pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/default.nix index 686ff8652a45..508d2ce2c5a4 100644 --- a/pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/default.nix +++ b/pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/default.nix @@ -5,7 +5,7 @@ callPackage, }: let - version = "1.54.0"; + version = "1.58.0"; rescript-editor-analysis = callPackage ./rescript-editor-analysis.nix { inherit version; }; arch = if stdenv.hostPlatform.isLinux then @@ -21,7 +21,7 @@ vscode-utils.buildVscodeMarketplaceExtension rec { name = "rescript-vscode"; publisher = "chenglou92"; inherit version; - hash = "sha256-c7TJED5YpHRwn7Ooq8sG+N99b7tH6TOgeC9TTYdb4JA="; + hash = "sha256-EuEBbtdCaS4l8ykkxyLLMjEnUMs0IsXoc994a8Pw1Ws="; }; postPatch = '' rm -r ${analysisDir} 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 index 7b2452a814bf..b4763dc417a1 100644 --- 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 @@ -16,7 +16,7 @@ stdenv.mkDerivation { owner = "rescript-lang"; repo = "rescript-vscode"; rev = version; - hash = "sha256-+Ht8qWwxtFWHFMiV/aoZIs2S3SxkOWgdwSKN+akp/LU="; + hash = "sha256-v+qCVge57wvA97mtzbxAX9Fvi7ruo6ZyIC14O8uWl9Y="; }; nativeBuildInputs = [ @@ -25,16 +25,12 @@ stdenv.mkDerivation { ocamlPackages.cppo ]; - # 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" + buildPhase = '' + dune build -p analysis ''; installPhase = '' - install -D -m0555 rescript-editor-analysis.exe $out/bin/rescript-editor-analysis.exe + install -D -m0555 _build/default/analysis/bin/main.exe $out/bin/rescript-editor-analysis.exe ''; meta = {