ocamlPackages.sqlite3: disable for OCaml < 4.12 & use Dune 3

This commit is contained in:
Vincent Laporte 2023-02-07 07:17:08 +01:00
parent cad065dddd
commit 8c60553edf
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F
2 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,8 @@ buildDunePackage {
pname = "caqti-driver-sqlite3";
inherit (caqti) version src;
duneVersion = "3";
propagatedBuildInputs = [ caqti ocaml_sqlite3 ];
meta = caqti.meta // {

View File

@ -3,12 +3,12 @@
buildDunePackage rec {
pname = "sqlite3";
version = "5.1.0";
useDune2 = true;
minimumOCamlVersion = "4.05";
duneVersion = "3";
minimalOCamlVersion = "4.12";
src = fetchurl {
url = "https://github.com/mmottl/sqlite3-ocaml/releases/download/${version}/sqlite3-${version}.tbz";
sha256 = "sha256-uw23EWkajfok/insTstpEkRK2Q4PTER6+Jgx5tHf/qU=";
hash = "sha256-uw23EWkajfok/insTstpEkRK2Q4PTER6+Jgx5tHf/qU=";
};
nativeBuildInputs = [ pkg-config ];