lol

ocamlPackages.mparser: 1.2.3 → 1.3

authored by

Sylvain Fankhauser and committed by
Vincent Laporte
db6c491e 9c7b3586

+12 -16
+12 -16
pkgs/development/ocaml-modules/mparser/default.nix
··· 1 - { stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }: 2 - 3 - stdenv.mkDerivation { 4 - name = "ocaml${ocaml.version}-mparser-1.2.3"; 5 - src = fetchzip { 6 - url = "https://github.com/cakeplus/mparser/archive/1.2.3.tar.gz"; 7 - sha256 = "1f8vpagmv0jdm50pxs2xwh2xcmvgaprx4kw871hlml9ahsflxgnw"; 8 - }; 9 - 10 - buildInputs = [ ocaml findlib ocamlbuild ]; 1 + { lib, fetchFromGitHub, buildDunePackage }: 11 2 12 - configurePhase = "ocaml setup.ml -configure"; 13 - buildPhase = "ocaml setup.ml -build"; 14 - installPhase = "ocaml setup.ml -install"; 3 + buildDunePackage rec { 4 + pname = "mparser"; 5 + version = "1.3"; 6 + useDune2 = true; 15 7 16 - createFindlibDestdir = true; 8 + src = fetchFromGitHub { 9 + owner = "murmour"; 10 + repo = "mparser"; 11 + rev = version; 12 + sha256 = "16j19v16r42gcsii6a337zrs5cxnf12ig0vaysxyr7sq5lplqhkx"; 13 + }; 17 14 18 15 meta = { 19 16 description = "A simple monadic parser combinator OCaml library"; 20 17 license = lib.licenses.lgpl21Plus; 21 - homepage = "https://github.com/cakeplus/mparser"; 18 + homepage = "https://github.com/murmour/mparser"; 22 19 maintainers = [ lib.maintainers.vbgl ]; 23 - inherit (ocaml.meta) platforms; 24 20 }; 25 21 }