nixpkgs/pkgs/development/ocaml-modules/sqlexpr/default.nix

27 lines
811 B
Nix
Raw Normal View History

{ stdenv, fetchurl, buildDunePackage, 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
buildDunePackage rec {
pname = "sqlexpr";
2018-07-23 08:22:18 +01:00
version = "0.9.0";
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
};
buildInputs = [ lwt_ppx ocaml-migrate-parsetree ppx_tools_versioned ];
2018-07-23 08:22:18 +01:00
propagatedBuildInputs = [ ocaml_lwt csv ocaml_sqlite3 ];
doCheck = true;
preBuild = "rm META.sqlexpr";
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 ];
2016-06-01 16:04:55 +01:00
};
}