about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/omd/default.nix
blob: 41d68cdc4c42df60e462dc747b0b65fe5fd1f547 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:

stdenv.mkDerivation {
  name = "ocaml${ocaml.version}-omd-1.3.0";
  src = fetchurl {
    url = http://pw374.github.io/distrib/omd/omd-1.3.0.tar.gz;
    sha256 = "0d0r6c4s3hq11d0qjc0bc1s84hz7k8nfg5q6g239as8myam4a80w";
  };

  buildInputs = [ ocaml findlib ocamlbuild ];

  createFindlibDestdir = true;

  configurePhase = "ocaml setup.ml -configure --prefix $out";

  meta = {
    description = "Extensible Markdown library and tool in OCaml";
    homepage = https://github.com/ocaml/omd;
    license = stdenv.lib.licenses.isc;
    maintainers = [ stdenv.lib.maintainers.vbgl ];
    inherit (ocaml.meta) platforms;
  };
}