mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 05:57:28 +00:00
Merge pull request #223997 from marsam/update-flow
flow: 0.193.0 -> 0.203.0
This commit is contained in:
commit
616b79d553
@ -2,15 +2,19 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "flow";
|
||||
version = "0.193.0";
|
||||
version = "0.203.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "facebook";
|
||||
repo = "flow";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-YmBk8bFGcBDTMgqzTpRPHtYAJfFWCr/AjXkdp2KoX/c=";
|
||||
sha256 = "sha256-y06RI2g7W37HyY+wgGab6hoaskdq45NBxCFZYQmmctE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/services/inference/check_cache.ml --replace 'Core_kernel' 'Core'
|
||||
'';
|
||||
|
||||
makeFlags = [ "FLOW_RELEASE=1" ];
|
||||
|
||||
installPhase = ''
|
||||
@ -20,9 +24,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = with ocamlPackages; [ ocaml findlib ocamlbuild ];
|
||||
buildInputs = with ocamlPackages; [ ocaml-migrate-parsetree-2 dtoa fileutils core_kernel sedlex ocaml_lwt lwt_log lwt_ppx ppx_deriving ppx_gen_rec visitors wtf8 ]
|
||||
++ lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
nativeBuildInputs = with ocamlPackages; [ ocaml dune_3 findlib ocamlbuild ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]
|
||||
++ (with ocamlPackages; [ core_kernel dtoa fileutils lwt_log lwt_ppx ocaml_lwt ppx_deriving ppx_gen_rec ppx_let sedlex visitors wtf8 ] ++ lib.optionals stdenv.isLinux [ inotify ]);
|
||||
|
||||
meta = with lib; {
|
||||
description = "A static type checker for JavaScript";
|
||||
|
Loading…
Reference in New Issue
Block a user