vscode-extensions.chenglou92.rescript-vscode: 1.54.0 → 1.58.0 (#345434)
This commit is contained in:
commit
90f5daf0ec
@ -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}
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user