Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 24 lines 661 B view raw
1{ stdenv, fetchzip, ocaml, findlib, ocamlbuild }: 2 3let version = "2.0.0"; in 4 5stdenv.mkDerivation { 6 name = "ocaml-base64-${version}"; 7 8 src = fetchzip { 9 url = "https://github.com/mirage/ocaml-base64/archive/v${version}.tar.gz"; 10 sha256 = "1nv55gwq5vaxmrcz9ja2s165b1p9fhcxszc1l76043gpa56qm4fs"; 11 }; 12 13 buildInputs = [ ocaml findlib ocamlbuild ]; 14 15 createFindlibDestdir = true; 16 17 meta = { 18 homepage = https://github.com/mirage/ocaml-base64; 19 platforms = ocaml.meta.platforms or []; 20 description = "Base64 encoding and decoding in OCaml"; 21 license = stdenv.lib.licenses.isc; 22 maintainers = with stdenv.lib.maintainers; [ vbgl ]; 23 }; 24}