trv: init at 0.1.3

This adds the trv ocaml build tool to the system

+45
+39
pkgs/development/tools/misc/trv/default.nix
···
··· 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 + }
+6
pkgs/top-level/all-packages.nix
··· 4833 4834 tinycc = callPackage ../development/compilers/tinycc { }; 4835 4836 urweb = callPackage ../development/compilers/urweb { }; 4837 4838 vala = callPackage ../development/compilers/vala/default.nix { };
··· 4833 4834 tinycc = callPackage ../development/compilers/tinycc { }; 4835 4836 + trv = callPackage ../development/tools/misc/trv { 4837 + inherit (ocamlPackages_4_02) findlib camlp4 core async async_unix 4838 + async_extra sexplib async_shell core_extended async_find cohttp uri; 4839 + ocaml = ocaml_4_02; 4840 + }; 4841 + 4842 urweb = callPackage ../development/compilers/urweb { }; 4843 4844 vala = callPackage ../development/compilers/vala/default.nix { };