Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
ocamlPackages,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "flow";
|
|
version = "0.281.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "facebook";
|
|
repo = "flow";
|
|
tag = "v${version}";
|
|
hash = "sha256-YttdOu5zJo/I0e2hV5vrBSWvUMOZgfhf3RmEC8fRWlI=";
|
|
};
|
|
|
|
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 = with lib; {
|
|
description = "Static type checker for JavaScript";
|
|
mainProgram = "flow";
|
|
homepage = "https://flow.org/";
|
|
changelog = "https://github.com/facebook/flow/blob/v${version}/Changelog.md";
|
|
license = licenses.mit;
|
|
platforms = ocamlPackages.ocaml.meta.platforms;
|
|
maintainers = with maintainers; [ puffnfresh ];
|
|
};
|
|
}
|