From c6049e9403822df3cb2cd8485fada1dc4c547f00 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 3 Apr 2023 06:29:39 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.ctypes:=200.20.1=20=E2=86=92=200.?= =?UTF-8?q?20.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/ctypes/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/ctypes/default.nix b/pkgs/development/ocaml-modules/ctypes/default.nix index e1bfab4d16e1..fa9cde044e8a 100644 --- a/pkgs/development/ocaml-modules/ctypes/default.nix +++ b/pkgs/development/ocaml-modules/ctypes/default.nix @@ -6,13 +6,13 @@ else stdenv.mkDerivation rec { pname = "ocaml${ocaml.version}-ctypes"; - version = "0.20.1"; + version = "0.20.2"; src = fetchFromGitHub { owner = "ocamllabs"; repo = "ocaml-ctypes"; rev = version; - sha256 = "sha256-H1QR0MJCqRdXxRufCA663wzTNWQ8MYYAy2nz/XHCn0Y="; + hash = "sha256-LzUrR8K88CjY/R5yUK3y6KG85hUMjbzuebHGqI8KhhM="; }; nativeBuildInputs = [ pkg-config ocaml findlib ]; @@ -21,14 +21,22 @@ stdenv.mkDerivation rec { strictDeps = true; + preConfigure = '' + substituteInPlace META --replace ' bytes ' ' ' + ''; + buildPhase = '' + runHook preBuild make XEN=false libffi.config ctypes-base ctypes-stubs make XEN=false ctypes-foreign + runHook postBuild ''; installPhase = '' + runHook preInstall mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs make install XEN=false + runHook postInstall ''; meta = with lib; {