nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 37 lines 1.1 kB view raw
1{stdenv, fetchFromGitHub, ocaml, findlib, camlp4, core_p4, async_p4, async_unix_p4 2, re2_p4, async_extra_p4, sexplib_p4, async_shell, core_extended_p4, async_find 3, cohttp, conduit, magic-mime 4}: 5 6assert stdenv.lib.versionOlder "4.02" ocaml.version; 7 8stdenv.mkDerivation rec { 9 name = "trv-${version}"; 10 version = "0.1.3"; 11 12 src = fetchFromGitHub { 13 owner = "afiniate"; 14 repo = "trv"; 15 rev = "${version}"; 16 sha256 = "0fv0zh76djqhkzfzwv6k60rnky50pw9gn01lwhijrggrcxrrphz1"; 17 }; 18 19 20 buildInputs = [ ocaml findlib camlp4 ]; 21 propagatedBuildInputs = [ core_p4 async_p4 async_unix_p4 22 async_extra_p4 sexplib_p4 async_shell core_extended_p4 23 async_find cohttp conduit magic-mime re2_p4 ]; 24 25 createFindlibDestdir = true; 26 dontStrip = true; 27 28 installFlags = "SEMVER=${version} PREFIX=$(out)"; 29 30 meta = with stdenv.lib; { 31 homepage = https://github.com/afiniate/trv; 32 description = "Shim for vrt to enable bootstrapping"; 33 license = licenses.asl20; 34 maintainers = [ maintainers.ericbmerritt ]; 35 platforms = ocaml.meta.platforms or []; 36 }; 37}