Created
July 9, 2016 22:39
-
-
Save despairblue/ede17776a9c4a535111fb43fe88e2e4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchFromGitHub, lib, ocaml, libelf, cf-private, CoreServices, git, mercurial }: | |
with lib; | |
stdenv.mkDerivation rec { | |
version = "0.28.0"; | |
name = "flow-${version}"; | |
src = fetchFromGitHub { | |
owner = "facebook"; | |
repo = "flow"; | |
rev = "v${version}"; | |
sha256 = "1xryv1366zc385r82r6n832xkaqcm63zs1baizl02qchfzfa3am2"; | |
}; | |
installPhase = '' | |
mkdir -p $out/bin | |
cp bin/flow $out/bin/ | |
''; | |
buildInputs = [ ocaml libelf ] | |
++ optionals stdenv.isDarwin [ cf-private CoreServices ]; | |
meta = with stdenv.lib; { | |
description = "A static type checker for JavaScript"; | |
homepage = http://flowtype.org; | |
license = licenses.bsd3; | |
platforms = platforms.unix; | |
maintainers = with maintainers; [ puffnfresh globin ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to update flow in nixos, but due to a bug it only builds if git and hg are in the path, so I added git and mercurial to the environment, but it still fails.