aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/base64/2.0.nix
blob: a49e0e8a778e7fc8080d00dc2d299cdfff5ec8f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild }:

let version = "2.0.0"; in

stdenv.mkDerivation {
  pname = "ocaml-base64";
  inherit version;

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

  buildInputs = [ ocaml findlib ocamlbuild ];

  createFindlibDestdir = true;

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