about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJayesh Bhoot <jayesh@bhoot.sh>2022-07-18 23:23:02 +0530
committerJayesh Bhoot <jayesh@bhoot.sh>2022-09-23 18:31:21 +0530
commitcc5159e589d1e60d1c0d4212c9b3d448d20a2e70 (patch)
tree724a7fe77de30f21a1f6c9fd527aef6d1721301d
parentb3f5f7edd8e6179ea42ea724ee6b3bbf690b51f8 (diff)
downloadnixlib-cc5159e589d1e60d1c0d4212c9b3d448d20a2e70.tar
nixlib-cc5159e589d1e60d1c0d4212c9b3d448d20a2e70.tar.gz
nixlib-cc5159e589d1e60d1c0d4212c9b3d448d20a2e70.tar.bz2
nixlib-cc5159e589d1e60d1c0d4212c9b3d448d20a2e70.tar.lz
nixlib-cc5159e589d1e60d1c0d4212c9b3d448d20a2e70.tar.xz
nixlib-cc5159e589d1e60d1c0d4212c9b3d448d20a2e70.tar.zst
nixlib-cc5159e589d1e60d1c0d4212c9b3d448d20a2e70.zip
vscode-extensions.chenglou92.rescript-vscode: 1.3.0 -> 1.6.0
This upgrade also brings the version of the subpackage
rescript-editor-analysis on par with rescript-vscode.
-rw-r--r--pkgs/applications/editors/vscode/extensions/rescript/default.nix9
-rw-r--r--pkgs/applications/editors/vscode/extensions/rescript/rescript-editor-analysis.nix17
2 files changed, 15 insertions, 11 deletions
diff --git a/pkgs/applications/editors/vscode/extensions/rescript/default.nix b/pkgs/applications/editors/vscode/extensions/rescript/default.nix
index fb0f1db8d59f..902bc58f1d14 100644
--- a/pkgs/applications/editors/vscode/extensions/rescript/default.nix
+++ b/pkgs/applications/editors/vscode/extensions/rescript/default.nix
@@ -1,6 +1,7 @@
 { lib, stdenv, vscode-utils, callPackage }:
 let
-  rescript-editor-analysis = (callPackage ./rescript-editor-analysis.nix { });
+  version = "1.6.0";
+  rescript-editor-analysis = callPackage ./rescript-editor-analysis.nix { inherit version; };
   arch =
     if stdenv.isLinux then "linux"
     else if stdenv.isDarwin then "darwin"
@@ -11,8 +12,8 @@ vscode-utils.buildVscodeMarketplaceExtension rec {
   mktplcRef = {
     name = "rescript-vscode";
     publisher = "chenglou92";
-    version = "1.3.0";
-    sha256 = "sha256-Sgi7FFOpI/XOeyPOrDhwZdZ+43ilUz7oQ49yB7tiMXk=";
+    inherit version;
+    sha256 = "sha256-/Nv+uyTkJQVaPKIDRr1P/Z5vsituXpP48/sDn3FUEeA=";
   };
   postPatch = ''
     rm -r ${analysisDir}
@@ -22,7 +23,7 @@ vscode-utils.buildVscodeMarketplaceExtension rec {
   meta = with lib; {
     description = "The official VSCode plugin for ReScript";
     homepage = "https://github.com/rescript-lang/rescript-vscode";
-    maintainers = with maintainers; [ dlip ];
+    maintainers = with maintainers; [ dlip jayesh-bhoot ];
     license = licenses.mit;
   };
 }
diff --git a/pkgs/applications/editors/vscode/extensions/rescript/rescript-editor-analysis.nix b/pkgs/applications/editors/vscode/extensions/rescript/rescript-editor-analysis.nix
index 518280b4b06b..a0b49f9c44be 100644
--- a/pkgs/applications/editors/vscode/extensions/rescript/rescript-editor-analysis.nix
+++ b/pkgs/applications/editors/vscode/extensions/rescript/rescript-editor-analysis.nix
@@ -1,21 +1,24 @@
-{ lib, stdenv, fetchFromGitHub, bash, ocaml }:
+{ lib, stdenv, fetchFromGitHub, bash, ocaml, dune_3, version }:
 
 stdenv.mkDerivation {
   pname = "rescript-editor-analysis";
-  version = "1.1.3";
+  inherit version;
 
   src = fetchFromGitHub {
     owner = "rescript-lang";
     repo = "rescript-vscode";
-    rev = "8d0412a72307b220b7f5774e2612760a2d429059";
-    sha256 = "rHQtfuIiEWlSPuZvNpEafsvlXCj2Uv1YRR1IfvKfC2s=";
+    rev = version;
+    sha256 = "sha256-O5kZCnhtMcevPTs5UxhIXx124WQf1VvF2WMVHjMEQZc=";
   };
 
-  nativeBuildInputs = [ ocaml ];
+  nativeBuildInputs = [ ocaml dune_3 ];
 
+  # Skip testing phases because they need to download and install node modules
   postPatch = ''
     cd analysis
-    substituteInPlace Makefile --replace "/bin/bash" "${bash}/bin/bash"
+    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 = ''
@@ -25,7 +28,7 @@ stdenv.mkDerivation {
   meta = with lib; {
     description = "Analysis binary for the ReScript VSCode plugin";
     homepage = "https://github.com/rescript-lang/rescript-vscode";
-    maintainers = with maintainers; [ dlip ];
+    maintainers = with maintainers; [ dlip jayesh-bhoot ];
     license = licenses.mit;
   };
 }