nixpkgs/pkgs/development/ocaml-modules/ppx_blob/default.nix
2020-04-10 19:03:29 +02:00

22 lines
655 B
Nix

{ lib, fetchurl, buildDunePackage, alcotest, ocaml-migrate-parsetree }:
buildDunePackage rec {
pname = "ppx_blob";
version = "0.4.0";
src = fetchurl {
url = "https://github.com/johnwhitington/${pname}/releases/download/${version}/ppx_blob-${version}.tbz";
sha256 = "1xmslk1mwdzhy1bydgsjlcb7h544c39hvxa8lywp8w72gaggjl16";
};
checkInputs = lib.optional doCheck alcotest;
buildInputs = [ ocaml-migrate-parsetree ];
doCheck = true;
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;
};
}