1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00
nixpkgs/pkgs/development/ocaml-modules/sqlite3EZ/default.nix
2018-08-29 12:49:41 +00:00

31 lines
916 B
Nix

{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, twt, ocaml_sqlite3 }:
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.12";
if stdenv.lib.versionAtLeast ocaml.version "4.06"
then throw "sqlite3EZ is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation {
name = "ocaml-sqlite3EZ-0.1.0";
src = fetchurl {
url = https://github.com/mlin/ocaml-sqlite3EZ/archive/v0.1.0.tar.gz;
sha256 = "8ed2c5d5914a65cbd95589ef11bfb8b38a020eb850cdd49b8adce7ee3a563748";
};
buildInputs = [ ocaml findlib ocamlbuild twt ];
propagatedBuildInputs = [ ocaml_sqlite3 ];
createFindlibDestdir = true;
meta = with stdenv.lib; {
homepage = https://github.com/mlin/ocaml-sqlite3EZ;
description = "A thin wrapper for sqlite3-ocaml with a simplified interface";
license = licenses.mit;
maintainers = [ maintainers.vbgl ];
platforms = ocaml.meta.platforms or [];
};
}