nixpkgs/pkgs/development/ocaml-modules/ppx_blob/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
678 B
Nix
Raw Normal View History

2021-01-01 14:29:10 +00:00
{ lib, fetchurl, buildDunePackage, ocaml, alcotest, ppxlib }:
buildDunePackage rec {
pname = "ppx_blob";
2021-01-01 14:29:10 +00:00
version = "0.7.2";
2023-04-10 12:14:33 +00:00
duneVersion = "3";
src = fetchurl {
url = "https://github.com/johnwhitington/${pname}/releases/download/${version}/ppx_blob-${version}.tbz";
2021-01-01 14:29:10 +00:00
sha256 = "00haz1cmplk3j9ysh6j656zrldy60585fmlndmfhpd5332mxrfdw";
};
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";
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;
};
}