nixpkgs/pkgs/development/ocaml-modules/ppx_import/default.nix
José Romildo Malaquias a01cad0d0f
ocamlPackages.ppx_import: 1.8.0 -> 1.9.1 (#156399)
* ocamlPackages.ppx_import: 1.8.0 -> 1.9.1

* coqPackages.serapi: fix compilation with ppx_import-1.9.1
2022-01-26 13:16:24 +01:00

44 lines
864 B
Nix

{ lib
, fetchurl
, buildDunePackage
, ounit
, ppx_deriving
, ppx_sexp_conv
, ppxlib
}:
lib.throwIfNot (lib.versionAtLeast ppxlib.version "0.24.0")
"ppx_import is not available with ppxlib-${ppxlib.version}"
buildDunePackage rec {
pname = "ppx_import";
version = "1.9.1";
useDune2 = true;
minimalOCamlVersion = "4.05";
src = fetchurl {
url = "https://github.com/ocaml-ppx/ppx_import/releases/download/${version}/ppx_import-${version}.tbz";
sha256 = "1li1f9b1i0yhjy655k74hgzhd05palz726zjbhwcy3iqxvi9id6i";
};
propagatedBuildInputs = [
ppxlib
];
checkInputs = [
ounit
ppx_deriving
ppx_sexp_conv
];
doCheck = true;
meta = {
description = "A syntax extension for importing declarations from interface files";
license = lib.licenses.mit;
homepage = "https://github.com/ocaml-ppx/ppx_import";
};
}