flow: added Linux support
Changed the build inputs to only include the additional Darwin inputs when building for Darwin.
This commit is contained in:
parent
adb74ad2f9
commit
67c4c5fd16
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, ocaml, libelf, cf-private, CoreServices }:
|
{ stdenv, fetchFromGitHub, lib, ocaml, libelf, cf-private, CoreServices }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.17.0";
|
version = "0.17.0";
|
||||||
@ -15,13 +17,14 @@ stdenv.mkDerivation rec {
|
|||||||
cp bin/flow $out/bin/
|
cp bin/flow $out/bin/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ ocaml libelf cf-private CoreServices ];
|
buildInputs = [ ocaml libelf ]
|
||||||
|
++ optionals stdenv.isDarwin [ cf-private CoreServices ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://flowtype.org/";
|
|
||||||
description = "A static type checker for JavaScript";
|
description = "A static type checker for JavaScript";
|
||||||
license = stdenv.lib.licenses.bsd3;
|
homepage = http://flowtype.org;
|
||||||
platforms = stdenv.lib.platforms.unix;
|
license = licenses.bsd3;
|
||||||
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ puffnfresh globin ];
|
maintainers = with maintainers; [ puffnfresh globin ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user