ocamlPackages.visitors: 20190711 -> 20200210

authored by Mario Rodas and committed by Vincent Laporte 50eb65e7 e9698342

+17 -11
+17 -11
pkgs/development/ocaml-modules/visitors/default.nix
··· 1 - { stdenv, fetchurl, ocaml, findlib, ocamlbuild, cppo, ppx_tools, ppx_deriving, result }: 1 + { lib, buildDunePackage, fetchFromGitLab, ppx_tools, ppx_deriving, result, cppo }: 2 2 3 - stdenv.mkDerivation { 4 - name = "ocaml${ocaml.version}-visitors-20190711"; 3 + buildDunePackage rec { 4 + pname = "visitors"; 5 + version = "20200210"; 5 6 6 - src = fetchurl { 7 - url = "http://gallium.inria.fr/~fpottier/visitors/visitors-20190711.tar.gz"; 8 - sha256 = "1h794xczfczf573mpwzm4ah9ir1rbbrkqipbh3aflfpdq2mgsbvg"; 7 + useDune2 = true; 8 + 9 + minimumOCamlVersion = "4.02.3"; 10 + 11 + src = fetchFromGitLab { 12 + owner = "fpottier"; 13 + repo = pname; 14 + rev = version; 15 + domain = "gitlab.inria.fr"; 16 + sha256 = "12i099h1hc1walabiwqbinnpgcxkc1wn72913v7v6vvyif21rb5a"; 9 17 }; 10 18 11 - buildInputs = [ ocaml findlib ocamlbuild cppo ]; 19 + buildInputs = [ cppo ]; 20 + 12 21 propagatedBuildInputs = [ ppx_tools ppx_deriving result ]; 13 22 14 - createFindlibDestdir = true; 15 - 16 - meta = with stdenv.lib; { 23 + meta = with lib; { 17 24 homepage = "https://gitlab.inria.fr/fpottier/visitors"; 18 25 license = licenses.lgpl21; 19 26 description = "An OCaml syntax extension (technically, a ppx_deriving plugin) which generates object-oriented visitors for traversing and transforming data structures"; 20 - inherit (ocaml.meta) platforms; 21 27 maintainers = [ maintainers.marsam ]; 22 28 }; 23 29 }