summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/herelib/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/herelib/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/herelib/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/herelib/default.nix b/pkgs/development/ocaml-modules/herelib/default.nix
new file mode 100644
index 00000000000..f9267ede60a
--- /dev/null
+++ b/pkgs/development/ocaml-modules/herelib/default.nix
@@ -0,0 +1,26 @@
+{ lib, buildOcaml, fetchFromGitHub, camlp4 }:
+
+buildOcaml rec {
+  version = "112.35.00";
+  pname = "herelib";
+
+  minimumSupportedOcamlVersion = "4.00";
+
+  src = fetchFromGitHub {
+    owner = "janestreet";
+    repo = "herelib";
+    rev = version;
+    sha256 = "sha256-EuMhHu2na3lcpsJ1wMVOgBr6VKndlonq8jgAW01eelI=";
+  };
+
+  strictDeps = true;
+
+  buildInputs = [ camlp4 ];
+
+  meta = with lib; {
+    homepage = "https://github.com/janestreet/herelib";
+    description = "Syntax extension for inserting the current location";
+    license = licenses.asl20;
+    maintainers = [ maintainers.ericbmerritt ];
+  };
+}