depot/third_party/nixpkgs/pkgs/development/ocaml-modules/ppx_blob/default.nix
Default email 6ae7ad3cc5 Project import generated by Copybara.
GitOrigin-RevId: a322b32e9d74fb476944ff6cfb55833dc69cfaaa
2020-11-19 01:13:47 +01:00

23 lines
700 B
Nix

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