2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, runCommand, fetchFromGitHub, ninja, nodejs, python3, ... }:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
|
|
|
build-bs-platform = import ./build-bs-platform.nix;
|
|
|
|
in
|
|
|
|
(build-bs-platform rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit lib stdenv runCommand fetchFromGitHub ninja nodejs python3;
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "8.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
ocaml-version = "4.06.1";
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
patches = [ ./jscomp-release-ninja.patch ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BuckleScript";
|
|
|
|
repo = "bucklescript";
|
|
|
|
rev = version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "1hql7sxps1k17zmwyha6idq6nw20abpq770l55ry722birclmsmf";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
}).overrideAttrs (attrs: {
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "JavaScript backend for OCaml focused on smooth integration and clean generated code";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://bucklescript.github.io";
|
|
|
|
license = licenses.lgpl3;
|
2021-03-23 19:22:30 +00:00
|
|
|
maintainers = with maintainers; [ turbomack gamb ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
})
|