about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/pp_loc/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/pp_loc/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/pp_loc/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/pp_loc/default.nix b/nixpkgs/pkgs/development/ocaml-modules/pp_loc/default.nix
new file mode 100644
index 000000000000..147dd49f5d84
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/pp_loc/default.nix
@@ -0,0 +1,22 @@
+{ lib, fetchurl, buildDunePackage }:
+
+buildDunePackage rec {
+  pname = "pp_loc";
+  version = "2.1.0";
+
+  minimalOCamlVersion = "4.08";
+
+  src = fetchurl {
+    url = "https://github.com/Armael/pp_loc/releases/download/v${version}/pp_loc-${version}.tbz";
+    hash = "sha256-L3NlBdQx6BpP6FGtMQ/ynsTNIMj9N+8FDZ5vEFC6p8s=";
+  };
+
+  doCheck = true;
+
+  meta = {
+    description = "Quote and highlight input fragments at a given source location";
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.vbgl ];
+    homepage = "https://armael.github.io/pp_loc/pp_loc/";
+  };
+}