diff options
author | Théo Zimmermann <theo.zimmermann@univ-paris-diderot.fr> | 2016-11-03 17:34:36 +0100 |
---|---|---|
committer | vbgl <vbgl@users.noreply.github.com> | 2016-11-08 15:38:45 +0100 |
commit | 01910b18014f71a008089f4ebbfeb59af4daa7ba (patch) | |
tree | f2d40c47ea39264ee31b3018371917eda0aa0591 /pkgs/development/ocaml-modules/ppx_import | |
parent | 54a0e90a7c6dd1c2fdf915c3486593dc00833a87 (diff) |
ocamlPackage.ppx_import: init at 1.1
Diffstat (limited to 'pkgs/development/ocaml-modules/ppx_import')
-rw-r--r-- | pkgs/development/ocaml-modules/ppx_import/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ppx_import/default.nix b/pkgs/development/ocaml-modules/ppx_import/default.nix new file mode 100644 index 0000000000000..245fe3f76f66c --- /dev/null +++ b/pkgs/development/ocaml-modules/ppx_import/default.nix @@ -0,0 +1,32 @@ +{stdenv, fetchFromGitHub, buildOcaml, ocaml, opam, + cppo, ppx_tools, ounit, ppx_deriving}: + +buildOcaml rec { + name = "ppx_import"; + + version = "1.1"; + + minimumSupportedOcamlVersion = "4.02"; + + src = fetchFromGitHub { + owner = "whitequark"; + repo = "ppx_import"; + rev = "v${version}"; + sha256 = "1hfvbc81dg58q7kkpn808b3j0xazrqfrr4v71sd1yvmnk71wak6k"; + }; + + buildInputs = [ cppo ounit ppx_deriving opam ]; + + doCheck = true; + checkTarget = "test"; + + installPhase = '' + opam-installer --script --prefix=$out ppx_import.install | sh + ln -s $out/lib/ppx_import $out/lib/ocaml/${ocaml.version}/site-lib + ''; + + meta = with stdenv.lib; { + description = "A syntax extension that allows to pull in types or signatures from other compiled interface files"; + license = licenses.mit; + }; +} \ No newline at end of file |