1{ lib, fetchFromGitHub, buildDunePackage, core, core_unix, pkg-config
2, sqlite }:
3buildDunePackage rec {
4 pname = "hack_parallel";
5 version = "1.0.1";
6 useDune2 = true;
7 minimumOcamlVersion = "4.04.1";
8
9 src = fetchFromGitHub {
10 owner = "rvantonder";
11 repo = "hack_parallel";
12 rev = version;
13 sha256 = "0qjlkw35r4q2cm0n2x0i73zvx1xgrp6axaia2nm8zxpm49mid629";
14 };
15
16 patches = [ ./hack_parallel.patch ];
17
18 nativeBuildInputs = [ pkg-config ];
19
20 propagatedBuildInputs = [ core core_unix sqlite ];
21
22 meta = {
23 description =
24 "Core parallel and shared memory library used by Hack, Flow, and Pyre";
25 license = lib.licenses.mit;
26 homepage = "https://github.com/rvantonder/hack_parallel";
27 };
28}