Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 30 lines 916 B view raw
1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, twt, ocaml_sqlite3 }: 2 3assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.12"; 4 5if stdenv.lib.versionAtLeast ocaml.version "4.06" 6then throw "sqlite3EZ is not available for OCaml ${ocaml.version}" 7else 8 9stdenv.mkDerivation { 10 name = "ocaml-sqlite3EZ-0.1.0"; 11 12 src = fetchurl { 13 url = https://github.com/mlin/ocaml-sqlite3EZ/archive/v0.1.0.tar.gz; 14 sha256 = "8ed2c5d5914a65cbd95589ef11bfb8b38a020eb850cdd49b8adce7ee3a563748"; 15 }; 16 17 buildInputs = [ ocaml findlib ocamlbuild twt ]; 18 19 propagatedBuildInputs = [ ocaml_sqlite3 ]; 20 21 createFindlibDestdir = true; 22 23 meta = with stdenv.lib; { 24 homepage = https://github.com/mlin/ocaml-sqlite3EZ; 25 description = "A thin wrapper for sqlite3-ocaml with a simplified interface"; 26 license = licenses.mit; 27 maintainers = [ maintainers.vbgl ]; 28 platforms = ocaml.meta.platforms or []; 29 }; 30}