2021-01-01 14:29:10 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml, alcotest, ppxlib }:
|
2016-07-20 23:05:51 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppx_blob";
|
2021-01-01 14:29:10 +00:00
|
|
|
version = "0.7.2";
|
2020-11-14 08:42:16 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
2016-07-20 23:05:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-05 10:21:46 +00:00
|
|
|
url = "https://github.com/johnwhitington/${pname}/releases/download/${version}/ppx_blob-${version}.tbz";
|
2021-01-01 14:29:10 +00:00
|
|
|
sha256 = "00haz1cmplk3j9ysh6j656zrldy60585fmlndmfhpd5332mxrfdw";
|
2016-07-20 23:05:51 +00:00
|
|
|
};
|
|
|
|
|
2020-11-14 08:42:16 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2021-01-01 14:29:10 +00:00
|
|
|
propagatedBuildInputs = [ ppxlib ];
|
2022-08-23 06:04:50 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2016-07-20 23:05:51 +00:00
|
|
|
|
2020-04-09 16:58:17 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/johnwhitington/ppx_blob";
|
2016-07-20 23:05:51 +00:00
|
|
|
description = "OCaml ppx to include binary data from a file as a string";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
};
|
|
|
|
}
|