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