depot/third_party/nixpkgs/pkgs/development/ocaml-modules/base64/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

33 lines
902 B
Nix

{ lib, fetchpatch, fetchzip, buildDunePackage, alcotest, bos }:
let version = "3.2.0"; in
buildDunePackage rec {
pname = "base64";
inherit version;
src = fetchzip {
url = "https://github.com/mirage/ocaml-base64/archive/v${version}.tar.gz";
sha256 = "1ilw3zj0w6cq7i4pvr8m2kv5l5f2y9aldmv72drlwwns013b1gwy";
};
minimumOCamlVersion = "4.03";
buildInputs = [ bos ];
# Fix test-suite for alcotest ≥ 1.0
patches = [(fetchpatch {
url = "https://github.com/mirage/ocaml-base64/commit/8d334d02aa52875158fae3e2fb8fe0a5596598d0.patch";
sha256 = "0lvqdp98qavpzis1wgwh3ijajq79hq47898gsrk37fpyjbrdzf5q";
})];
doCheck = true;
checkInputs = [ alcotest ];
meta = {
homepage = "https://github.com/mirage/ocaml-base64";
description = "Base64 encoding and decoding in OCaml";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ vbgl ];
};
}