push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
{
lib,
stdenv,
vscode-utils,
callPackage,
}:
let
extVersion = "1.62.0";
rescript-editor-analysis = callPackage ./rescript-editor-analysis.nix { };
# Ensure the versions match
version =
if rescript-editor-analysis.version == extVersion then
rescript-editor-analysis.version
else
throw "analysis and extension versions must match";
arch =
if stdenv.hostPlatform.isLinux then
"linux"
else if stdenv.hostPlatform.isDarwin then
"darwin"
else
throw "Unsupported system: ${stdenv.system}";
analysisDir = "server/analysis_binaries/${arch}";
in
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "rescript-vscode";
publisher = "chenglou92";
inherit version;
hash = "sha256-yUAhysTM9FXo9ZAzrto+tnjnofIUEQAGBg3tjIainrY=";
};
# For rescript-language-server
passthru.rescript-editor-analysis = rescript-editor-analysis;
strictDeps = true;
postPatch = ''
rm -r ${analysisDir}
ln -s ${rescript-editor-analysis}/bin ${analysisDir}
'';
meta = {
description = "Official VSCode plugin for ReScript";
homepage = "https://github.com/rescript-lang/rescript-vscode";
maintainers = [
lib.maintainers.dlip
lib.maintainers.jayesh-bhoot
];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
license = lib.licenses.mit;
};
}

View File

@@ -0,0 +1,45 @@
{
lib,
fetchFromGitHub,
nix-update-script,
ocamlPackages,
}:
ocamlPackages.buildDunePackage rec {
pname = "analysis";
version = "1.62.0";
minimalOCamlVersion = "4.10";
src = fetchFromGitHub {
owner = "rescript-lang";
repo = "rescript-vscode";
tag = version;
hash = "sha256-Tox5Qq0Kpqikac90sQww2cGr9RHlXnVy7GMnRA18CoA=";
};
strictDeps = true;
nativeBuildInputs = [
ocamlPackages.cppo
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"([0-9]+\.[0-9]+\.[0-9]+)"
];
};
meta = {
description = "Analysis binary for the ReScript VSCode plugin";
homepage = "https://github.com/rescript-lang/rescript-vscode";
changelog = "https://github.com/rescript-lang/rescript-vscode/releases/tag/${version}";
maintainers = with lib.maintainers; [
dlip
jayesh-bhoot
RossSmyth
];
license = lib.licenses.mit;
mainProgram = "rescript-editor-analysis";
};
}