ocamlPackages.ppx_gen_rec: init at 1.0.0
This commit is contained in:
parent
ab800ddfe7
commit
8d03816ed0
30
pkgs/development/ocaml-modules/ppx_gen_rec/default.nix
Normal file
30
pkgs/development/ocaml-modules/ppx_gen_rec/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ stdenv, fetchurl, ocaml, findlib, jbuilder, ocaml-migrate-parsetree }:
|
||||||
|
|
||||||
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "ppx_gen_rec";
|
||||||
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/flowtype/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
||||||
|
sha256 = "0qy0wa3rd5yh1612jijadi1yddfslpsmmmf69phi2dhr3vmkhza7";
|
||||||
|
};
|
||||||
|
|
||||||
|
unpackCmd = "tar xjf $src";
|
||||||
|
|
||||||
|
buildInputs = [ ocaml findlib jbuilder ocaml-migrate-parsetree ];
|
||||||
|
|
||||||
|
buildPhase = "jbuilder build -p ppx_gen_rec";
|
||||||
|
|
||||||
|
inherit (jbuilder) installPhase;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/flowtype/ocaml-ppx_gen_rec;
|
||||||
|
description = "ocaml preprocessor that generates a recursive module";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = ocaml.meta.platforms or [];
|
||||||
|
maintainers = [ maintainers.frontsideair ];
|
||||||
|
};
|
||||||
|
}
|
@ -640,6 +640,8 @@ let
|
|||||||
|
|
||||||
ppx_deriving_yojson = callPackage ../development/ocaml-modules/ppx_deriving_yojson {};
|
ppx_deriving_yojson = callPackage ../development/ocaml-modules/ppx_deriving_yojson {};
|
||||||
|
|
||||||
|
ppx_gen_rec = callPackage ../development/ocaml-modules/ppx_gen_rec {};
|
||||||
|
|
||||||
ppx_import = callPackage ../development/ocaml-modules/ppx_import {};
|
ppx_import = callPackage ../development/ocaml-modules/ppx_import {};
|
||||||
|
|
||||||
ppx_tools =
|
ppx_tools =
|
||||||
|
Loading…
Reference in New Issue
Block a user