19
pkgs/development/ocaml-modules/lwt/ppx.nix
Normal file
19
pkgs/development/ocaml-modules/lwt/ppx.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ stdenv, jbuilder, ocaml, findlib, lwt, ppx_tools_versioned }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocaml${ocaml.version}-lwt_ppx-${lwt.version}";
|
||||
|
||||
inherit (lwt) src;
|
||||
|
||||
buildInputs = [ jbuilder ocaml findlib ppx_tools_versioned ];
|
||||
|
||||
propagatedBuildInputs = [ lwt ];
|
||||
|
||||
buildPhase = "jbuilder build -p lwt_ppx";
|
||||
installPhase = "${jbuilder.installPhase} lwt_ppx.install";
|
||||
|
||||
meta = {
|
||||
description = "Ppx syntax extension for Lwt";
|
||||
inherit (lwt.meta) license platforms homepage maintainers;
|
||||
};
|
||||
}
|
||||
@@ -1,17 +1,17 @@
|
||||
{ stdenv, fetchFromGitHub, lib, ocaml, libelf, cf-private, CoreServices,
|
||||
findlib, camlp4, sedlex, ocamlbuild, ocaml_lwt, wtf8, dtoa }:
|
||||
findlib, camlp4, sedlex, ocamlbuild, lwt_ppx, wtf8, dtoa }:
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.66.0";
|
||||
version = "0.68.0";
|
||||
name = "flow-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "facebook";
|
||||
repo = "flow";
|
||||
rev = "v${version}";
|
||||
sha256 = "0l1sdd1n0llmz8m81vym3zhcn824sr9w46h9jpb7i7wrcm4y410d";
|
||||
sha256 = "0wags0msk7s1z3gi6ns6d7zdpqk8wh5ryafvdyk6zwqwhaqgr5jw";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
ocaml libelf findlib camlp4 sedlex ocamlbuild ocaml_lwt wtf8 dtoa
|
||||
ocaml libelf findlib camlp4 sedlex ocamlbuild lwt_ppx wtf8 dtoa
|
||||
] ++ optionals stdenv.isDarwin [ cf-private CoreServices ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
Reference in New Issue
Block a user