2020-04-09 17:58:24 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml, alcotest, ocaml-migrate-parsetree }:
|
2016-07-21 00:05:51 +01:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ppx_blob";
|
2020-11-14 08:42:16 +00:00
|
|
|
version = "0.7.1";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2016-07-21 00:05:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-05 10:21:46 +00:00
|
|
|
url = "https://github.com/johnwhitington/${pname}/releases/download/${version}/ppx_blob-${version}.tbz";
|
2020-11-14 08:42:16 +00:00
|
|
|
sha256 = "0m616ri6kmawflphiwm6j4djds27v0fjvi8xjz1fq5ydc1sq8d0l";
|
2016-07-21 00:05:51 +01:00
|
|
|
};
|
|
|
|
|
2020-11-14 08:42:16 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-04-09 17:58:17 +01:00
|
|
|
buildInputs = [ ocaml-migrate-parsetree ];
|
2020-11-14 08:42:16 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
2016-07-21 00:05:51 +01:00
|
|
|
|
2020-04-09 17:58:17 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/johnwhitington/ppx_blob";
|
2016-07-21 00:05:51 +01:00
|
|
|
description = "OCaml ppx to include binary data from a file as a string";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
};
|
|
|
|
}
|