summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/base64/default.nix
blob: f7e4513d82650e5403fd1c68a0d1838fbd1bd64c (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
24
{ stdenv, fetchzip, ocaml, findlib }:

let version = "2.0.0"; in

stdenv.mkDerivation {
  name = "ocaml-base64-${version}";

  src = fetchzip {
    url = "https://github.com/mirage/ocaml-base64/archive/v${version}.tar.gz";
    sha256 = "1nv55gwq5vaxmrcz9ja2s165b1p9fhcxszc1l76043gpa56qm4fs";
  };

  buildInputs = [ ocaml findlib ];

  createFindlibDestdir = true;

  meta = {
    homepage = https://github.com/mirage/ocaml-base64;
    platforms = ocaml.meta.platforms;
    description = "Base64 encoding and decoding in OCaml";
    license = stdenv.lib.licenses.isc;
    maintainers = with stdenv.lib.maintainers; [ vbgl ];
  };
}