ocamlPackages.reason-react: init at 0.15.0
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
buildDunePackage,
|
||||
melange,
|
||||
reason,
|
||||
reason-react-ppx,
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "reason-react";
|
||||
inherit (reason-react-ppx) version src;
|
||||
nativeBuildInputs = [
|
||||
reason
|
||||
melange
|
||||
];
|
||||
buildInputs = [
|
||||
reason-react-ppx
|
||||
melange
|
||||
];
|
||||
doCheck = true;
|
||||
meta = reason-react-ppx.meta // {
|
||||
description = "Reason bindings for React.js";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
buildDunePackage,
|
||||
fetchurl,
|
||||
lib,
|
||||
ppxlib,
|
||||
}:
|
||||
|
||||
let
|
||||
version = "0.15.0";
|
||||
in
|
||||
buildDunePackage {
|
||||
pname = "reason-react-ppx";
|
||||
inherit version;
|
||||
minimalOCamlVersion = "4.14";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/reasonml/reason-react/releases/download/${version}/reason-react-${version}.tbz";
|
||||
hash = "sha256-+pPJo/b50vp4pAC/ygI1LHB5O0pDJ1xpcQZOdFP8Q80=";
|
||||
};
|
||||
buildInputs = [
|
||||
ppxlib
|
||||
];
|
||||
doCheck = false; # Needs to run in reason-react, see default.nix
|
||||
meta = {
|
||||
description = "React.js JSX PPX";
|
||||
homepage = "https://github.com/reasonml/reason-react";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [
|
||||
lib.maintainers.vog
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1650,6 +1650,10 @@ let
|
||||
|
||||
reason-native = lib.recurseIntoAttrs (callPackage ../development/ocaml-modules/reason-native { });
|
||||
|
||||
reason-react = callPackage ../development/ocaml-modules/reason-react { };
|
||||
|
||||
reason-react-ppx = callPackage ../development/ocaml-modules/reason-react/ppx.nix { };
|
||||
|
||||
rebez = callPackage ../development/ocaml-modules/rebez { };
|
||||
|
||||
reperf = callPackage ../development/ocaml-modules/reperf { };
|
||||
|
||||
Reference in New Issue
Block a user