mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
4e42cac49d
This change was produced by searching for remaining occurrences of stdenv.lib and replacing them manually. Reference #108938.
26 lines
763 B
Nix
26 lines
763 B
Nix
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ocaml${ocaml.version}-mparser-1.2.3";
|
|
src = fetchzip {
|
|
url = "https://github.com/cakeplus/mparser/archive/1.2.3.tar.gz";
|
|
sha256 = "1f8vpagmv0jdm50pxs2xwh2xcmvgaprx4kw871hlml9ahsflxgnw";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
configurePhase = "ocaml setup.ml -configure";
|
|
buildPhase = "ocaml setup.ml -build";
|
|
installPhase = "ocaml setup.ml -install";
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
description = "A simple monadic parser combinator OCaml library";
|
|
license = lib.licenses.lgpl21Plus;
|
|
homepage = "https://github.com/cakeplus/mparser";
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|