Merge pull request #224438 from vbgl/ocaml-ctypes-0.20.2

ocamlPackages.ctypes: 0.20.1 → 0.20.2
This commit is contained in:
Ulrik Strid 2023-04-03 21:12:43 +02:00 committed by GitHub
commit eb593c1639
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,13 +6,13 @@ else
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-ctypes"; pname = "ocaml${ocaml.version}-ctypes";
version = "0.20.1"; version = "0.20.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ocamllabs"; owner = "ocamllabs";
repo = "ocaml-ctypes"; repo = "ocaml-ctypes";
rev = version; rev = version;
sha256 = "sha256-H1QR0MJCqRdXxRufCA663wzTNWQ8MYYAy2nz/XHCn0Y="; hash = "sha256-LzUrR8K88CjY/R5yUK3y6KG85hUMjbzuebHGqI8KhhM=";
}; };
nativeBuildInputs = [ pkg-config ocaml findlib ]; nativeBuildInputs = [ pkg-config ocaml findlib ];
@ -21,14 +21,22 @@ stdenv.mkDerivation rec {
strictDeps = true; strictDeps = true;
preConfigure = ''
substituteInPlace META --replace ' bytes ' ' '
'';
buildPhase = '' buildPhase = ''
runHook preBuild
make XEN=false libffi.config ctypes-base ctypes-stubs make XEN=false libffi.config ctypes-base ctypes-stubs
make XEN=false ctypes-foreign make XEN=false ctypes-foreign
runHook postBuild
''; '';
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
make install XEN=false make install XEN=false
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {