mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
ocamlPackages.mariadb: fix for OCaml 5.0
This commit is contained in:
parent
76ad192fe1
commit
75b5f4b106
|
@ -1,5 +1,6 @@
|
|||
{ lib, fetchurl, stdenv
|
||||
, ocaml, findlib, ocamlbuild
|
||||
, fetchpatch
|
||||
, ocaml, findlib, ocamlbuild, camlp-streams
|
||||
, ctypes, mariadb, libmysqlclient }:
|
||||
|
||||
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.07")
|
||||
|
@ -14,8 +15,18 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-3/C1Gz6luUzS7oaudLlDHMT6JB2v5OdbLVzJhtayHGM=";
|
||||
};
|
||||
|
||||
patches = fetchpatch {
|
||||
url = "https://github.com/andrenth/ocaml-mariadb/commit/9db2e4d8dec7c584213d0e0f03d079a36a35d9d5.patch";
|
||||
hash = "sha256-heROtU02cYBJ5edIHMdYP1xNXcLv8h79GYGBuudJhgE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.ml --replace '#use "topfind"' \
|
||||
'#directory "${findlib}/lib/ocaml/${ocaml.version}/site-lib/";; #use "topfind"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
||||
buildInputs = [ mariadb libmysqlclient ];
|
||||
buildInputs = [ mariadb libmysqlclient camlp-streams ocamlbuild ];
|
||||
propagatedBuildInputs = [ ctypes ];
|
||||
|
||||
strictDeps = true;
|
||||
|
|
Loading…
Reference in a new issue