nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 ocaml,
6 findlib,
7 alcotest,
8 bos,
9 rresult,
10}:
11
12buildDunePackage (finalAttrs: {
13 pname = "base64";
14 version = "3.5.2";
15
16 minimalOCamlVersion = "4.07";
17
18 src = fetchurl {
19 url = "https://github.com/mirage/ocaml-base64/releases/download/v${finalAttrs.version}/base64-${finalAttrs.version}.tbz";
20 hash = "sha256-s/XOMBqnLHAy75C+IzLXL/OWKSLADuKuxryt4Yei9Zs=";
21 };
22
23 nativeBuildInputs = [ findlib ];
24
25 # otherwise fmt breaks evaluation
26 doCheck = lib.versionAtLeast ocaml.version "4.08";
27 checkInputs = [
28 alcotest
29 bos
30 rresult
31 ];
32
33 meta = {
34 homepage = "https://github.com/mirage/ocaml-base64";
35 description = "Base64 encoding and decoding in OCaml";
36 license = lib.licenses.isc;
37 maintainers = with lib.maintainers; [ vbgl ];
38 };
39})