1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 ocaml,
6 alcotest,
7 ppxlib,
8}:
9
10buildDunePackage rec {
11 pname = "ppx_blob";
12 version = "0.9.0";
13
14 minimalOCamlVersion = "4.08";
15
16 src = fetchurl {
17 url = "https://github.com/johnwhitington/${pname}/releases/download/${version}/ppx_blob-${version}.tbz";
18 sha256 = "sha256-8RXpCl8Qdc7cnZMKuRJx+GcOzk3uENwRR6s5uK+1cOQ=";
19 };
20
21 checkInputs = [ alcotest ];
22 propagatedBuildInputs = [ ppxlib ];
23 doCheck = true;
24
25 meta = with lib; {
26 homepage = "https://github.com/johnwhitington/ppx_blob";
27 description = "OCaml ppx to include binary data from a file as a string";
28 license = licenses.unlicense;
29 };
30}