Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 27 lines 776 B view raw
1{ lib, fetchurl, buildDunePackage, ocaml, findlib, alcotest, bos, rresult }: 2 3buildDunePackage rec { 4 pname = "base64"; 5 version = "3.5.1"; 6 7 minimalOCamlVersion = "4.03"; 8 duneVersion = "3"; 9 10 src = fetchurl { 11 url = "https://github.com/mirage/ocaml-base64/releases/download/v${version}/base64-${version}.tbz"; 12 hash = "sha256-2P7apZvRL+rnrMCLWSjdR4qsUj9MqNJARw0lAGUcZe0="; 13 }; 14 15 nativeBuildInputs = [ findlib ]; 16 17 # otherwise fmt breaks evaluation 18 doCheck = lib.versionAtLeast ocaml.version "4.08"; 19 checkInputs = [ alcotest bos rresult ]; 20 21 meta = { 22 homepage = "https://github.com/mirage/ocaml-base64"; 23 description = "Base64 encoding and decoding in OCaml"; 24 license = lib.licenses.isc; 25 maintainers = with lib.maintainers; [ vbgl ]; 26 }; 27}