1{ lib, stdenv, runCommand, fetchFromGitHub, ninja, nodejs, python3, ... }:
2let
3 build-bs-platform = import ./build-bs-platform.nix;
4in
5(build-bs-platform rec {
6 inherit lib stdenv runCommand fetchFromGitHub ninja nodejs python3;
7 version = "8.2.0";
8 ocaml-version = "4.06.1";
9
10 patches = [ ./jscomp-release-ninja.patch ];
11
12 src = fetchFromGitHub {
13 owner = "BuckleScript";
14 repo = "bucklescript";
15 rev = version;
16 sha256 = "1hql7sxps1k17zmwyha6idq6nw20abpq770l55ry722birclmsmf";
17 fetchSubmodules = true;
18 };
19}).overrideAttrs (attrs: {
20 meta = with lib; {
21 description = "A JavaScript backend for OCaml focused on smooth integration and clean generated code";
22 homepage = "https://bucklescript.github.io";
23 license = licenses.lgpl3;
24 maintainers = with maintainers; [ turbomack gamb ];
25 platforms = platforms.all;
26 };
27})