about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/ppx_blob/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/ppx_blob/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/ppx_blob/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/ppx_blob/default.nix b/nixpkgs/pkgs/development/ocaml-modules/ppx_blob/default.nix
new file mode 100644
index 000000000000..3de101383891
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/ppx_blob/default.nix
@@ -0,0 +1,23 @@
+{ lib, fetchurl, buildDunePackage, ocaml, alcotest, ppxlib }:
+
+buildDunePackage rec {
+  pname = "ppx_blob";
+  version = "0.8.0";
+
+  duneVersion = "3";
+
+  src = fetchurl {
+    url = "https://github.com/johnwhitington/${pname}/releases/download/${version}/ppx_blob-${version}.tbz";
+    sha256 = "sha256-drobFwMTKd/a3aP5CX/08WhvgS1CkARH6zo+nSiwl08=";
+  };
+
+  checkInputs = [ alcotest ];
+  propagatedBuildInputs = [ ppxlib ];
+  doCheck = lib.versionAtLeast ocaml.version "4.08";
+
+  meta = with lib; {
+    homepage = "https://github.com/johnwhitington/ppx_blob";
+    description = "OCaml ppx to include binary data from a file as a string";
+    license = licenses.unlicense;
+  };
+}