at v206 27 lines 674 B view raw
1{ stdenv, fetchFromGitHub, ocaml, libelf }: 2 3stdenv.mkDerivation rec { 4 version = "0.17.0"; 5 name = "flow-${version}"; 6 src = fetchFromGitHub { 7 owner = "facebook"; 8 repo = "flow"; 9 rev = "v${version}"; 10 sha256 = "1hc4gspxp43svr36l4fn4fpd7d9myg8hf5hph5y1lq9ihqaiymsp"; 11 }; 12 13 installPhase = '' 14 mkdir -p $out/bin 15 cp bin/flow $out/bin/ 16 ''; 17 18 buildInputs = [ ocaml libelf ]; 19 20 meta = with stdenv.lib; { 21 homepage = "http://flowtype.org/"; 22 description = "A static type checker for JavaScript"; 23 license = stdenv.lib.licenses.bsd3; 24 platforms = stdenv.lib.platforms.unix; 25 maintainers = with maintainers; [ puffnfresh globin ]; 26 }; 27}