1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 11:32:03 +00:00
nixpkgs/pkgs/development/ocaml-modules/sqlexpr/default.nix

33 lines
989 B
Nix
Raw Normal View History

2018-09-05 17:11:47 +01:00
{ stdenv, fetchurl, ocaml, findlib, dune, ocaml_lwt
2018-07-23 08:22:18 +01:00
, lwt_ppx, ocaml-migrate-parsetree, ppx_tools_versioned, csv, ocaml_sqlite3
}:
2016-06-01 16:04:55 +01:00
2018-07-23 08:22:18 +01:00
stdenv.mkDerivation rec {
version = "0.9.0";
name = "ocaml${ocaml.version}-sqlexpr-${version}";
2016-06-01 16:04:55 +01:00
src = fetchurl {
2018-07-23 08:22:18 +01:00
url = "https://github.com/mfp/ocaml-sqlexpr/releases/download/${version}/ocaml-sqlexpr-${version}.tar.gz";
sha256 = "0z0bkzi1mh0m39alzr2ds7hjpfxffx6azpfsj2wpaxrg64ks8ypd";
2016-06-01 16:04:55 +01:00
};
2018-09-05 17:11:47 +01:00
buildInputs = [ ocaml findlib dune lwt_ppx ocaml-migrate-parsetree ppx_tools_versioned ];
2016-06-01 16:04:55 +01:00
2018-07-23 08:22:18 +01:00
propagatedBuildInputs = [ ocaml_lwt csv ocaml_sqlite3 ];
buildPhase = "dune build -p sqlexpr";
doCheck = true;
checkPhase = "dune runtest -p sqlexpr";
2018-09-05 17:11:47 +01:00
inherit (dune) installPhase;
2018-07-23 08:22:18 +01:00
meta = {
2016-06-01 16:04:55 +01:00
description = "Type-safe, convenient SQLite database access";
2018-07-23 08:22:18 +01:00
homepage = "https://github.com/mfp/ocaml-sqlexpr";
license = stdenv.lib.licenses.lgpl21;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
2016-06-01 16:04:55 +01:00
};
}