diff --git a/pkgs/development/tools/analysis/flow/default.nix b/pkgs/development/tools/analysis/flow/default.nix index 7a4ed91b9530..784a4256fe8e 100644 --- a/pkgs/development/tools/analysis/flow/default.nix +++ b/pkgs/development/tools/analysis/flow/default.nix @@ -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";