Merge pull request #215068 from vbgl/ocaml-sqlite3-fix

ocamlPackages.sqlite3: disable for OCaml < 4.12 & use Dune 3
This commit is contained in:
Weijia Wang 2023-02-07 16:55:44 +01:00 committed by GitHub
commit 469723aefc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 ];