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
2
2
3
3
* Support JSX transform with fragments (@tatchi in
4
4
[ #835 ] ( https://github.com/reasonml/reason-react/pull/835 ) )
Original file line number Diff line number Diff line change 16
16
pkgs = nixpkgs . legacyPackages . "${ system } " . appendOverlays [
17
17
( self : super : { ocamlPackages = super . ocaml-ng . ocamlPackages_5_2 ; } )
18
18
] ;
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
+ } ;
19
35
in
20
36
21
37
rec {
35
51
} ;
36
52
# Due to a Reason version mismatch, the generated OCaml PPX diff
37
53
# 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 ] ;
40
58
propagatedBuildInputs = [ ppxlib ] ;
41
59
} ;
42
60
66
84
} ;
67
85
68
86
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 ;
74
91
} ;
75
92
} ;
76
93
} ) ;
You can’t perform that action at this time.
0 commit comments