nixpkgs/pkgs/development/tools/misc/trv/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

{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
2016-11-12 09:55:42 +01:00
, cohttp, conduit, magic-mime, uri, tzdata
}:
2016-10-05 09:32:30 +02:00
assert stdenv.lib.versionOlder "4.02" ocaml.version;
2016-10-05 09:32:30 +02:00
stdenv.mkDerivation rec {
name = "trv-${version}";
2016-10-05 09:32:30 +02:00
version = "0.1.3";
src = fetchFromGitHub {
owner = "afiniate";
repo = "trv";
rev = "${version}";
sha256 = "0fv0zh76djqhkzfzwv6k60rnky50pw9gn01lwhijrggrcxrrphz1";
};
2016-11-12 09:55:42 +01:00
buildInputs = [ ocaml findlib camlp4 conduit magic-mime ];
propagatedBuildInputs = [ core_p4 async_p4 async_unix_p4
async_extra_p4 sexplib_p4 async_shell core_extended_p4
async_find cohttp uri re2_p4 ];
createFindlibDestdir = true;
dontStrip = true;
installFlags = "SEMVER=${version} PREFIX=$out";
meta = with stdenv.lib; {
homepage = https://github.com/afiniate/trv;
description = "Shim for vrt to enable bootstrapping";
license = licenses.asl20;
maintainers = [ maintainers.ericbmerritt ];
platforms = ocaml.meta.platforms or [];
};
}