lol

vscode-extensions.chenglou92.rescript-vscode: init at 1.1.3

+61
+2
pkgs/misc/vscode-extensions/default.nix
··· 316 316 }; 317 317 }; 318 318 319 + chenglou92.rescript-vscode = callPackage ./rescript { }; 320 + 319 321 cmschuetz12.wal = buildVscodeMarketplaceExtension { 320 322 mktplcRef = { 321 323 name = "wal";
+28
pkgs/misc/vscode-extensions/rescript/default.nix
··· 1 + { lib, stdenv, vscode-utils, callPackage }: 2 + let 3 + rescript-editor-analysis = (callPackage ./rescript-editor-analysis.nix { }); 4 + arch = 5 + if stdenv.isLinux then "linux" 6 + else if stdenv.isDarwin then "darwin" 7 + else throw "Unsupported platform"; 8 + analysisDir = "server/analysis_binaries/${arch}"; 9 + in 10 + vscode-utils.buildVscodeMarketplaceExtension rec { 11 + mktplcRef = { 12 + name = "rescript-vscode"; 13 + publisher = "chenglou92"; 14 + version = "1.1.3"; 15 + sha256 = "1c1ipxgm0f0a3vlnhr0v85jr5l3rwpjzh9w8nv2jn5vgvpas0b2a"; 16 + }; 17 + postPatch = '' 18 + rm -r ${analysisDir} 19 + ln -s ${rescript-editor-analysis}/bin ${analysisDir} 20 + ''; 21 + 22 + meta = with lib; { 23 + description = "The official VSCode plugin for ReScript"; 24 + homepage = "https://github.com/rescript-lang/rescript-vscode"; 25 + maintainers = with maintainers; [ dlip ]; 26 + license = licenses.mit; 27 + }; 28 + }
+31
pkgs/misc/vscode-extensions/rescript/rescript-editor-analysis.nix
··· 1 + { lib, stdenv, fetchFromGitHub, bash, ocaml }: 2 + 3 + stdenv.mkDerivation { 4 + pname = "rescript-editor-analysis"; 5 + version = "1.1.3"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "rescript-lang"; 9 + repo = "rescript-vscode"; 10 + rev = "8d0412a72307b220b7f5774e2612760a2d429059"; 11 + sha256 = "rHQtfuIiEWlSPuZvNpEafsvlXCj2Uv1YRR1IfvKfC2s="; 12 + }; 13 + 14 + nativeBuildInputs = [ ocaml ]; 15 + 16 + postPatch = '' 17 + cd analysis 18 + substituteInPlace Makefile --replace "/bin/bash" "${bash}/bin/bash" 19 + ''; 20 + 21 + installPhase = '' 22 + install -D -m0555 rescript-editor-analysis.exe $out/bin/rescript-editor-analysis.exe 23 + ''; 24 + 25 + meta = with lib; { 26 + description = "Analysis binary for the ReScript VSCode plugin"; 27 + homepage = "https://github.com/rescript-lang/rescript-vscode"; 28 + maintainers = with maintainers; [ dlip ]; 29 + license = licenses.mit; 30 + }; 31 + }