nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 nix-update-script,
5 ocamlPackages,
6}:
7
8ocamlPackages.buildDunePackage rec {
9 pname = "analysis";
10 version = "1.62.0";
11
12 minimalOCamlVersion = "4.10";
13
14 src = fetchFromGitHub {
15 owner = "rescript-lang";
16 repo = "rescript-vscode";
17 tag = version;
18 hash = "sha256-Tox5Qq0Kpqikac90sQww2cGr9RHlXnVy7GMnRA18CoA=";
19 };
20
21 strictDeps = true;
22 nativeBuildInputs = [
23 ocamlPackages.cppo
24 ];
25
26 passthru.updateScript = nix-update-script {
27 extraArgs = [
28 "--version-regex"
29 "([0-9]+\.[0-9]+\.[0-9]+)"
30 ];
31 };
32
33 meta = {
34 description = "Analysis binary for the ReScript VSCode plugin";
35 homepage = "https://github.com/rescript-lang/rescript-vscode";
36 changelog = "https://github.com/rescript-lang/rescript-vscode/releases/tag/${version}";
37 maintainers = with lib.maintainers; [
38 dlip
39 jayesh-bhoot
40 RossSmyth
41 ];
42 license = lib.licenses.mit;
43 mainProgram = "rescript-editor-analysis";
44 };
45}