2024-11-29 01:22:26 +01:00
|
|
|
{
|
|
|
|
buildDunePackage,
|
|
|
|
fetchurl,
|
|
|
|
lib,
|
|
|
|
ppxlib,
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2025-07-22 16:21:50 +02:00
|
|
|
version = "0.16.0";
|
2024-11-29 01:22:26 +01:00
|
|
|
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";
|
2025-07-22 16:21:50 +02:00
|
|
|
hash = "sha256-esPB+mvHHTQ3mUYILrkOjMELJxRDIsWleFcxIwOPQ1w=";
|
2024-11-29 01:22:26 +01:00
|
|
|
};
|
2025-07-15 08:40:14 +02:00
|
|
|
buildInputs = [ ppxlib ];
|
2024-11-29 01:22:26 +01:00
|
|
|
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;
|
2025-07-15 08:40:14 +02:00
|
|
|
maintainers = [ lib.maintainers.vog ];
|
2025-08-12 09:34:23 +02:00
|
|
|
broken = lib.versionAtLeast ppxlib.version "0.36";
|
2024-11-29 01:22:26 +01:00
|
|
|
};
|
|
|
|
}
|