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

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

44 lines
864 B
Nix
Raw Normal View History

{ lib
, fetchurl
, buildDunePackage
, ounit
, ppx_deriving
, ppx_sexp_conv
, ppxlib
2018-09-10 05:45:15 +00:00
}:
2016-11-03 16:34:36 +00:00
lib.throwIfNot (lib.versionAtLeast ppxlib.version "0.24.0")
"ppx_import is not available with ppxlib-${ppxlib.version}"
2018-12-05 09:31:47 +00:00
buildDunePackage rec {
pname = "ppx_import";
version = "1.9.1";
2016-11-03 16:34:36 +00:00
useDune2 = true;
minimalOCamlVersion = "4.05";
src = fetchurl {
url = "https://github.com/ocaml-ppx/ppx_import/releases/download/${version}/ppx_import-${version}.tbz";
sha256 = "1li1f9b1i0yhjy655k74hgzhd05palz726zjbhwcy3iqxvi9id6i";
2016-11-03 16:34:36 +00:00
};
propagatedBuildInputs = [
ppxlib
];
checkInputs = [
ounit
ppx_deriving
ppx_sexp_conv
];
2016-11-03 16:34:36 +00:00
doCheck = true;
2018-12-05 09:31:47 +00:00
meta = {
description = "A syntax extension for importing declarations from interface files";
2018-12-05 09:31:47 +00:00
license = lib.licenses.mit;
homepage = "https://github.com/ocaml-ppx/ppx_import";
2016-11-03 16:34:36 +00:00
};
2017-11-26 20:08:53 +00:00
}