nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 17.09 31 lines 843 B view raw
1{ stdenv, fetchFromGitHub, lib, ocaml, libelf, cf-private, CoreServices, findlib, camlp4, sedlex, ocamlbuild }: 2 3with lib; 4 5stdenv.mkDerivation rec { 6 version = "0.55.0"; 7 name = "flow-${version}"; 8 9 src = fetchFromGitHub { 10 owner = "facebook"; 11 repo = "flow"; 12 rev = "v${version}"; 13 sha256 = "042q2197m9l7r6j053dd4hqaqv7dsc5wh8h6aifkcmqa4ypp4w5r"; 14 }; 15 16 installPhase = '' 17 mkdir -p $out/bin 18 cp bin/flow $out/bin/ 19 ''; 20 21 buildInputs = [ ocaml libelf findlib camlp4 sedlex ocamlbuild ] 22 ++ optionals stdenv.isDarwin [ cf-private CoreServices ]; 23 24 meta = with stdenv.lib; { 25 description = "A static type checker for JavaScript"; 26 homepage = http://flowtype.org; 27 license = licenses.bsd3; 28 platforms = [ "x86_64-linux" "x86_64-darwin" ]; 29 maintainers = with maintainers; [ puffnfresh globin ]; 30 }; 31}