ocamlPackage.ppx_blob: init at 0.2 (#17129)
OCaml ppx to include binary data from a file as a string.
This commit is contained in:
parent
d9871f52b4
commit
2df3fde700
19
pkgs/development/ocaml-modules/ppx_blob/default.nix
Normal file
19
pkgs/development/ocaml-modules/ppx_blob/default.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ stdenv, buildOcaml, fetchurl, ppx_tools }:
|
||||||
|
|
||||||
|
buildOcaml rec {
|
||||||
|
name = "ppx_blob";
|
||||||
|
version = "0.2";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/johnwhitington/ppx_blob/archive/v${version}.tar.gz";
|
||||||
|
sha256 = "0kvqfm47f4xbgz0cl7ayz29myyb24xskm35svqrgakjq12nkpsss";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ ppx_tools ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://github.com/johnwhitington/ppx_blob";
|
||||||
|
description = "OCaml ppx to include binary data from a file as a string";
|
||||||
|
license = licenses.unlicense;
|
||||||
|
};
|
||||||
|
}
|
@ -5323,6 +5323,11 @@ in
|
|||||||
|
|
||||||
pprint = callPackage ../development/ocaml-modules/pprint { };
|
pprint = callPackage ../development/ocaml-modules/pprint { };
|
||||||
|
|
||||||
|
ppx_blob =
|
||||||
|
if lib.versionAtLeast ocaml_version "4.02"
|
||||||
|
then callPackage ../development/ocaml-modules/ppx_blob {}
|
||||||
|
else null;
|
||||||
|
|
||||||
ppx_tools =
|
ppx_tools =
|
||||||
if lib.versionAtLeast ocaml_version "4.02"
|
if lib.versionAtLeast ocaml_version "4.02"
|
||||||
then callPackage ../development/ocaml-modules/ppx_tools {}
|
then callPackage ../development/ocaml-modules/ppx_tools {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user