mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
ocamlPackages.ppx_tools : Add a version for ocaml 4.03
This commit is contained in:
parent
7bb3a04064
commit
f0bbb906e9
@ -1,21 +1,30 @@
|
|||||||
{ stdenv, fetchzip, ocaml, findlib }:
|
{ stdenv, fetchFromGitHub, ocaml, findlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
let
|
||||||
name = "ocaml-ppx_tools-5.0+4.02";
|
version =
|
||||||
src = fetchzip {
|
if stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.03" then "5.0+4.03.0" else "5.0+4.02.0";
|
||||||
url = https://github.com/alainfrisch/ppx_tools/archive/5.0+4.02.0.tar.gz;
|
in
|
||||||
sha256 = "16drjk0qafjls8blng69qiv35a84wlafpk16grrg2i3x19p8dlj8";
|
stdenv.mkDerivation {
|
||||||
};
|
name = "ocaml-ppx_tools-${version}";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "alainfrisch";
|
||||||
|
repo = "ppx_tools";
|
||||||
|
rev = version;
|
||||||
|
sha256 = if version == "5.0+4.03.0"
|
||||||
|
then "061v1fl5z7z3ywi4ppryrlcywnvnqbsw83ppq72qmkc7ma4603jg"
|
||||||
|
else "16drjk0qafjls8blng69qiv35a84wlafpk16grrg2i3x19p8dlj8"
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ];
|
buildInputs = [ ocaml findlib ];
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Tools for authors of ppx rewriters";
|
description = "Tools for authors of ppx rewriters";
|
||||||
homepage = http://www.lexifi.com/ppx_tools;
|
homepage = http://www.lexifi.com/ppx_tools;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = ocaml.meta.platforms or [];
|
platforms = ocaml.meta.platforms or [];
|
||||||
maintainers = with maintainers; [ vbgl ];
|
maintainers = with maintainers; [ vbgl ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user