ocamlPackages.ctypes: 0.20.1 → 0.20.2
This commit is contained in:
parent
28031f7579
commit
c6049e9403
|
@ -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; {
|
||||||
|
|
Loading…
Reference in a new issue