2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, runCommand, fetchFromGitHub, ninja, nodejs, python3, ... }:
|
|
|
|
let
|
|
|
|
build-bs-platform = import ./build-bs-platform.nix;
|
|
|
|
in
|
|
|
|
(build-bs-platform rec {
|
|
|
|
inherit 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: {
|
|
|
|
meta = with stdenv.lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "A 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;
|
|
|
|
maintainers = with maintainers; [ turbomack gamb anmonteiro ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
})
|