1 { lib, fetchFromGitHub, buildDunePackage, core, core_unix ? null, pkg-config
4 pname = "hack_parallel";
6 minimalOCamlVersion = "4.08";
8 src = fetchFromGitHub {
10 repo = "hack_parallel";
12 sha256 = "0qjlkw35r4q2cm0n2x0i73zvx1xgrp6axaia2nm8zxpm49mid629";
15 patches = [ ./hack_parallel.patch ];
18 substituteInPlace src/third-party/hack_core/hack_caml.ml --replace 'include Pervasives' ""
20 src/interface/hack_parallel_intf.mli \
22 src/third-party/hack_core/hack_core_list.ml \
23 src/third-party/hack_core/hack_result.ml* \
24 src/utils/collections/myMap.ml \
25 src/utils/daemon.ml* \
26 src/utils/exit_status.ml \
27 src/utils/hack_path.ml \
28 src/utils/measure.ml \
29 src/utils/timeout.ml \
30 --replace Pervasives. Stdlib.
31 substituteInPlace src/utils/sys_utils.ml --replace String.create Bytes.create
34 nativeBuildInputs = [ pkg-config ];
36 propagatedBuildInputs = [ core core_unix sqlite ];
40 "Core parallel and shared memory library used by Hack, Flow, and Pyre";
41 license = lib.licenses.mit;
42 homepage = "https://github.com/rvantonder/hack_parallel";