git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #10971 from ericbmerritt/trv-package

trv: init at 0.1.3

commit35f32d0fdaad2a46c6d2763b7cf38451e9ede124 authorPascal Wittmann <PascalWittmann@gmx.net> dateFri 20 Nov 2015, 14:26 (11 years ago) parent24207bebe301b3
2 files changed+45
pkgs/development/tools/misc/trv/default.nix+39 pkgs/top-level/all-packages.nix+6
pkgs/development/tools/misc/trv/default.nixnew file+39
@@ -0,0 +1,39 @@
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+}
pkgs/top-level/all-packages.nix+6
@@ -4855,6 +4855,12 @@ let
48554855
48564856 tinycc = callPackage ../development/compilers/tinycc { };
48574857
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+
48584864 urweb = callPackage ../development/compilers/urweb { };
48594865
48604866 vala = callPackage ../development/compilers/vala/default.nix { };