nixpkgs/pkgs/development/compilers/bs-platform/default.nix

26 lines
822 B
Nix
Raw Normal View History

2019-12-20 06:39:39 -08:00
{ stdenv, runCommand, fetchFromGitHub, ninja, nodejs, python3, ... }:
2019-12-05 11:41:34 -08:00
let
2019-12-20 06:39:39 -08:00
build-bs-platform = import ./build-bs-platform.nix;
in
2020-03-08 10:44:48 -07:00
(build-bs-platform rec {
2019-12-20 06:39:39 -08:00
inherit stdenv runCommand fetchFromGitHub ninja nodejs python3;
2020-05-14 21:00:31 -07:00
version = "7.3.2";
2019-12-20 06:39:39 -08:00
ocaml-version = "4.06.1";
src = fetchFromGitHub {
owner = "BuckleScript";
repo = "bucklescript";
2020-03-08 10:44:48 -07:00
rev = version;
2020-05-14 21:00:31 -07:00
sha256 = "1nvp7wiiv149r4qf9bgc84bm4w7s44sjq9i7j103v24wllzz218s";
2019-12-20 06:39:39 -08:00
fetchSubmodules = true;
};
}).overrideAttrs (attrs: {
2019-12-05 11:41:34 -08:00
meta = with stdenv.lib; {
description = "A JavaScript backend for OCaml focused on smooth integration and clean generated code.";
homepage = "https://bucklescript.github.io";
2019-12-05 11:41:34 -08:00
license = licenses.lgpl3;
2020-01-12 09:52:41 -08:00
maintainers = with maintainers; [ turbomack gamb anmonteiro ];
2019-12-05 11:41:34 -08:00
platforms = platforms.all;
};
2019-12-20 06:39:39 -08:00
})