summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/base64/default.nix
blob: 2f53d74c9eb224d8a17e6558ef5c1c19d63c4eb1 (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
25
26
{ lib, fetchzip, buildDunePackage, alcotest, bos }:

let version = "3.2.0"; in

buildDunePackage {
  pname = "base64";
  inherit version;

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

  minimumOCamlVersion = "4.03";

  buildInputs = [ alcotest bos ];

  doCheck = true;

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