File tree Expand file tree Collapse file tree 3 files changed +32
-15
lines changed
Expand file tree Collapse file tree 3 files changed +32
-15
lines changed Original file line number Diff line number Diff line change 1- # Unreleased
1+ # 0.14.1
22
33* Support JSX transform with fragments (@tatchi in
44 [ #835 ] ( https://github.com/reasonml/reason-react/pull/835 ) )
Original file line number Diff line number Diff line change 1616 pkgs = nixpkgs . legacyPackages . "${ system } " . appendOverlays [
1717 ( self : super : { ocamlPackages = super . ocaml-ng . ocamlPackages_5_2 ; } )
1818 ] ;
19+
20+ makeDevShell = { packages , release-mode ? false } :
21+ pkgs . mkShell {
22+ # dontDetectOcamlConflicts = true;
23+ inputsFrom = pkgs . lib . attrValues packages ;
24+ nativeBuildInputs =
25+ with pkgs . ocamlPackages ; [ ocamlformat pkgs . nodejs_latest ]
26+ ++ pkgs . lib . optionals release-mode ( with pkgs ; [
27+ cacert
28+ curl
29+ ocamlPackages . dune-release
30+ ocamlPackages . odoc
31+ git
32+ ] ) ;
33+ propagatedBuildInputs = with pkgs . ocamlPackages ; [ merlin ] ;
34+ } ;
1935 in
2036
2137 rec {
3551 } ;
3652 # Due to a Reason version mismatch, the generated OCaml PPX diff
3753 # looks different
38- doCheck = false ;
39- nativeCheckInputs = [ reason ] ;
54+ doCheck = true ;
55+ checkInputs = [ ] ;
56+ checkPhase = "dune build @runtest -p reason-react,reason-react-ppx" ;
57+ nativeCheckInputs = [ reason merlin pkgs . jq ] ;
4058 propagatedBuildInputs = [ ppxlib ] ;
4159 } ;
4260
6684 } ;
6785
6886 devShells = {
69- default = pkgs . mkShell {
70- dontDetectOcamlConflicts = true ;
71- inputsFrom = pkgs . lib . attrValues packages ;
72- nativeBuildInputs = with pkgs . ocamlPackages ; [ ocamlformat pkgs . nodejs_latest ] ;
73- propagatedBuildInputs = with pkgs . ocamlPackages ; [ merlin ] ;
87+ default = makeDevShell { inherit packages ; } ;
88+ release = makeDevShell {
89+ inherit packages ;
90+ release-mode = true ;
7491 } ;
7592 } ;
7693 } ) ;
You can’t perform that action at this time.
0 commit comments