summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorEric Merritt <ericbmerritt@gmail.com>2015-11-09 08:22:05 -0800
committerEric Merritt <ericbmerritt@gmail.com>2015-11-11 19:10:19 -0800
commitbe301b345fb46bc38798cc48be798fc265b8326f (patch)
treedbf5e2b170f129b27e589c53003980572f6516da /pkgs
parent03959d46165f49e6c3629cf1bf2a9ce0f6933de3 (diff)
downloadnixpkgs-be301b345fb46bc38798cc48be798fc265b8326f.tar
nixpkgs-be301b345fb46bc38798cc48be798fc265b8326f.tar.gz
nixpkgs-be301b345fb46bc38798cc48be798fc265b8326f.tar.bz2
nixpkgs-be301b345fb46bc38798cc48be798fc265b8326f.tar.lz
nixpkgs-be301b345fb46bc38798cc48be798fc265b8326f.tar.xz
nixpkgs-be301b345fb46bc38798cc48be798fc265b8326f.tar.zst
nixpkgs-be301b345fb46bc38798cc48be798fc265b8326f.zip
trv: init at 0.1.3
This adds the trv ocaml build tool to the system
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/misc/trv/default.nix39
-rw-r--r--pkgs/top-level/all-packages.nix6
2 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/trv/default.nix b/pkgs/development/tools/misc/trv/default.nix
new file mode 100644
index 00000000000..0f99cabbb96
--- /dev/null
+++ b/pkgs/development/tools/misc/trv/default.nix
@@ -0,0 +1,39 @@
+{stdenv, fetchFromGitHub, ocaml, findlib, camlp4, core, async, async_unix, re2,
+  async_extra, sexplib, async_shell, core_extended, async_find, cohttp, uri, tzdata}:
+
+let
+  ocaml_version = (builtins.parseDrvName ocaml.name).version;
+  version = "0.1.3";
+in
+
+assert stdenv.lib.versionOlder "4.02" ocaml_version;
+
+stdenv.mkDerivation {
+  name = "trv-${version}";
+
+  src = fetchFromGitHub {
+    owner = "afiniate";
+    repo = "trv";
+    rev = "${version}";
+    sha256 = "0fv0zh76djqhkzfzwv6k60rnky50pw9gn01lwhijrggrcxrrphz1";
+  };
+
+
+  buildInputs = [ ocaml findlib camlp4 ];
+  propagatedBuildInputs = [ core async async_unix
+                            async_extra sexplib async_shell core_extended
+                            async_find cohttp uri re2 ];
+
+  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;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a9b6d6c1a81..d5defcddfae 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4833,6 +4833,12 @@ let
 
   tinycc = callPackage ../development/compilers/tinycc { };
 
+  trv = callPackage ../development/tools/misc/trv {
+   inherit (ocamlPackages_4_02) findlib camlp4 core async async_unix 
+     async_extra sexplib async_shell core_extended async_find cohttp uri;
+    ocaml = ocaml_4_02;
+  };
+
   urweb = callPackage ../development/compilers/urweb { };
 
   vala = callPackage ../development/compilers/vala/default.nix { };