2016-09-24 22:39:35 +01:00
|
|
|
{stdenv, fetchFromGitHub, ocaml, findlib, camlp4, core_p4, async_p4, async_unix_p4
|
|
|
|
, re2_p4, async_extra_p4, sexplib_p4, async_shell, core_extended_p4, async_find
|
2018-07-21 01:44:44 +01:00
|
|
|
, cohttp, conduit, magic-mime
|
2016-11-12 08:55:42 +00:00
|
|
|
}:
|
2015-11-09 16:22:05 +00:00
|
|
|
|
2016-10-05 08:32:30 +01:00
|
|
|
assert stdenv.lib.versionOlder "4.02" ocaml.version;
|
2015-11-09 16:22:05 +00:00
|
|
|
|
2016-10-05 08:32:30 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "trv";
|
2016-10-05 08:32:30 +01:00
|
|
|
version = "0.1.3";
|
2015-11-09 16:22:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "afiniate";
|
|
|
|
repo = "trv";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2015-11-09 16:22:05 +00:00
|
|
|
sha256 = "0fv0zh76djqhkzfzwv6k60rnky50pw9gn01lwhijrggrcxrrphz1";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2017-02-19 11:38:29 +00:00
|
|
|
buildInputs = [ ocaml findlib camlp4 ];
|
2016-09-24 22:39:35 +01:00
|
|
|
propagatedBuildInputs = [ core_p4 async_p4 async_unix_p4
|
|
|
|
async_extra_p4 sexplib_p4 async_shell core_extended_p4
|
2017-02-19 11:38:29 +00:00
|
|
|
async_find cohttp conduit magic-mime re2_p4 ];
|
2015-11-09 16:22:05 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
dontStrip = true;
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "SEMVER=${version}" "PREFIX=$(out)" ];
|
2015-11-09 16:22:05 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/afiniate/trv;
|
|
|
|
description = "Shim for vrt to enable bootstrapping";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-11-09 16:22:05 +00:00
|
|
|
};
|
|
|
|
}
|