Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ocamlPackages.ocaml-migrate-parsetree: init at 0.5
This library converts parsetrees, outcometree and ast mappers between different OCaml versions. High-level functions help making PPX rewriters independent of a compiler version. Homepage: https://github.com/let-def/ocaml-migrate-parsetree
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
pkgs/development/ocaml-modules/ocaml-migrate-parsetree/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, jbuilder, result }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "ocaml${ocaml.version}-ocaml-migrate-parsetree-${version}"; | ||
version = "0.5"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "let-def"; | ||
repo = "ocaml-migrate-parsetree"; | ||
rev = "v${version}"; | ||
sha256 = "023lnd3kxa3d4zgsvv0z2lyzhg05zcgagy18vaalimbza57wq83h"; | ||
}; | ||
|
||
buildInputs = [ ocaml findlib ocamlbuild jbuilder ]; | ||
propagatedBuildInputs = [ result ]; | ||
|
||
installPhase = '' | ||
for p in *.install | ||
do | ||
${jbuilder.installPhase} $p | ||
done | ||
''; | ||
|
||
meta = { | ||
description = "Convert OCaml parsetrees between different major versions"; | ||
license = stdenv.lib.licenses.lgpl21; | ||
maintainers = [ stdenv.lib.maintainers.vbgl ]; | ||
inherit (src.meta) homepage; | ||
inherit (ocaml.meta) platforms; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters