Merge pull request #10971 from ericbmerritt/trv-package

trv: init at 0.1.3

+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
··· 4855 4855 4856 4856 tinycc = callPackage ../development/compilers/tinycc { }; 4857 4857 4858 + trv = callPackage ../development/tools/misc/trv { 4859 + inherit (ocamlPackages_4_02) findlib camlp4 core async async_unix 4860 + async_extra sexplib async_shell core_extended async_find cohttp uri; 4861 + ocaml = ocaml_4_02; 4862 + }; 4863 + 4858 4864 urweb = callPackage ../development/compilers/urweb { }; 4859 4865 4860 4866 vala = callPackage ../development/compilers/vala/default.nix { };