@@ -0,0 +1,39 @@
1+{stdenv, fetchFromGitHub, ocaml, findlib, camlp4, core, async, async_unix, re2,
2+ async_extra, sexplib, async_shell, core_extended, async_find, cohttp, uri, tzdata}:
3+
4+let
5+ ocaml_version = (builtins.parseDrvName ocaml.name).version;
6+ version = "0.1.3";
7+in
8+
9+assert stdenv.lib.versionOlder "4.02" ocaml_version;
10+
11+stdenv.mkDerivation {
12+ name = "trv-${version}";
13+
14+ src = fetchFromGitHub {
15+ owner = "afiniate";
16+ repo = "trv";
17+ rev = "${version}";
18+ sha256 = "0fv0zh76djqhkzfzwv6k60rnky50pw9gn01lwhijrggrcxrrphz1";
19+ };
20+
21+
22+ buildInputs = [ ocaml findlib camlp4 ];
23+ propagatedBuildInputs = [ core async async_unix
24+ async_extra sexplib async_shell core_extended
25+ async_find cohttp uri re2 ];
26+
27+ createFindlibDestdir = true;
28+ dontStrip = true;
29+
30+ installFlags = "SEMVER=${version} PREFIX=$out";
31+
32+ meta = with stdenv.lib; {
33+ homepage = https://github.com/afiniate/trv;
34+ description = "Shim for vrt to enable bootstrapping";
35+ license = licenses.asl20;
36+ maintainers = [ maintainers.ericbmerritt ];
37+ platforms = ocaml.meta.platforms;
38+ };
39+}