Files
nixpkgs/pkgs/development/tools/analysis/flow/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

64 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
ocamlPackages,
}:
stdenv.mkDerivation rec {
pname = "flow";
version = "0.288.0";
src = fetchFromGitHub {
owner = "facebook";
repo = "flow";
tag = "v${version}";
hash = "sha256-9KApZvjOSwR9wcO7nRmpPf2M5SzmV0Z0bM7O8StqZK0=";
};
makeFlags = [ "FLOW_RELEASE=1" ];
installPhase = ''
install -Dm755 bin/flow $out/bin/flow
install -Dm644 resources/shell/bash-completion $out/share/bash-completion/completions/flow
'';
strictDeps = true;
nativeBuildInputs = with ocamlPackages; [
ocaml
dune_3
findlib
ocamlbuild
];
buildInputs = (
with ocamlPackages;
[
camlp-streams
dtoa
fileutils
lwt_log
lwt_ppx
lwt
ppx_deriving
ppx_gen_rec
ppx_let
sedlex
visitors
wtf8
]
++ lib.optionals stdenv.hostPlatform.isLinux [ inotify ]
);
meta = {
description = "Static type checker for JavaScript";
mainProgram = "flow";
homepage = "https://flow.org/";
changelog = "https://github.com/facebook/flow/blob/v${version}/Changelog.md";
license = lib.licenses.mit;
platforms = ocamlPackages.ocaml.meta.platforms;
maintainers = with lib.maintainers; [ puffnfresh ];
};
}