lol
at 22.05-pre 28 lines 867 B view raw
1{ lib, stdenv, vscode-utils, callPackage }: 2let 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}"; 9in 10vscode-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}