tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
ocamlPackages.reason-react: init at 0.15.0
Volker Diels-Grabsch
1 year ago
4f8eb8d6
4c9ca538
+58
3 changed files
expand all
collapse all
unified
split
pkgs
development
ocaml-modules
reason-react
default.nix
ppx.nix
top-level
ocaml-packages.nix
+23
pkgs/development/ocaml-modules/reason-react/default.nix
···
1
1
+
{
2
2
+
buildDunePackage,
3
3
+
melange,
4
4
+
reason,
5
5
+
reason-react-ppx,
6
6
+
}:
7
7
+
8
8
+
buildDunePackage {
9
9
+
pname = "reason-react";
10
10
+
inherit (reason-react-ppx) version src;
11
11
+
nativeBuildInputs = [
12
12
+
reason
13
13
+
melange
14
14
+
];
15
15
+
buildInputs = [
16
16
+
reason-react-ppx
17
17
+
melange
18
18
+
];
19
19
+
doCheck = true;
20
20
+
meta = reason-react-ppx.meta // {
21
21
+
description = "Reason bindings for React.js";
22
22
+
};
23
23
+
}
+31
pkgs/development/ocaml-modules/reason-react/ppx.nix
···
1
1
+
{
2
2
+
buildDunePackage,
3
3
+
fetchurl,
4
4
+
lib,
5
5
+
ppxlib,
6
6
+
}:
7
7
+
8
8
+
let
9
9
+
version = "0.15.0";
10
10
+
in
11
11
+
buildDunePackage {
12
12
+
pname = "reason-react-ppx";
13
13
+
inherit version;
14
14
+
minimalOCamlVersion = "4.14";
15
15
+
src = fetchurl {
16
16
+
url = "https://github.com/reasonml/reason-react/releases/download/${version}/reason-react-${version}.tbz";
17
17
+
hash = "sha256-+pPJo/b50vp4pAC/ygI1LHB5O0pDJ1xpcQZOdFP8Q80=";
18
18
+
};
19
19
+
buildInputs = [
20
20
+
ppxlib
21
21
+
];
22
22
+
doCheck = false; # Needs to run in reason-react, see default.nix
23
23
+
meta = {
24
24
+
description = "React.js JSX PPX";
25
25
+
homepage = "https://github.com/reasonml/reason-react";
26
26
+
license = lib.licenses.mit;
27
27
+
maintainers = [
28
28
+
lib.maintainers.vog
29
29
+
];
30
30
+
};
31
31
+
}
+4
pkgs/top-level/ocaml-packages.nix
···
1650
1650
1651
1651
reason-native = lib.recurseIntoAttrs (callPackage ../development/ocaml-modules/reason-native { });
1652
1652
1653
1653
+
reason-react = callPackage ../development/ocaml-modules/reason-react { };
1654
1654
+
1655
1655
+
reason-react-ppx = callPackage ../development/ocaml-modules/reason-react/ppx.nix { };
1656
1656
+
1653
1657
rebez = callPackage ../development/ocaml-modules/rebez { };
1654
1658
1655
1659
reperf = callPackage ../development/ocaml-modules/reperf { };