ocamlPackages.ctypes: 0.13.1 → 0.15.1
ocamlPackages.integers: 0.2.2 → 0.3.0
This commit is contained in:
parent
94a80621ac
commit
a25381b019
|
@ -1,28 +1,29 @@
|
||||||
{ stdenv, buildOcaml, fetchzip, libffi, pkgconfig, ncurses, integers }:
|
{ stdenv, fetchzip, ocaml, findlib, libffi, pkgconfig, ncurses, integers }:
|
||||||
|
|
||||||
buildOcaml {
|
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
|
||||||
name = "ctypes";
|
then throw "ctypes is not available for OCaml ${ocaml.version}"
|
||||||
version = "0.13.1";
|
else
|
||||||
|
|
||||||
minimumSupportedOcamlVersion = "4";
|
stdenv.mkDerivation rec {
|
||||||
|
name = "ocaml${ocaml.version}-ctypes-${version}";
|
||||||
|
version = "0.15.1";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://github.com/ocamllabs/ocaml-ctypes/archive/67e711ec891e087fbe1e0b4665aa525af4eaa409.tar.gz";
|
url = "https://github.com/ocamllabs/ocaml-ctypes/archive/${version}.tar.gz";
|
||||||
sha256 = "1z84s5znr3lj84rzv6m37xxj9h7fwx4qiiykx3djf52qgk1rb2xb";
|
sha256 = "0adas974bwinn8jidb6chljkpd70s041h2a969dicsj0xsg6wys6";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ ncurses ];
|
buildInputs = [ ocaml findlib ncurses ];
|
||||||
propagatedBuildInputs = [ integers libffi ];
|
propagatedBuildInputs = [ integers libffi ];
|
||||||
|
|
||||||
hasSharedObjects = true;
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
|
||||||
make install XEN=false
|
make install XEN=false
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -31,5 +32,6 @@ buildOcaml {
|
||||||
description = "Library for binding to C libraries using pure OCaml";
|
description = "Library for binding to C libraries using pure OCaml";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.ericbmerritt ];
|
maintainers = [ maintainers.ericbmerritt ];
|
||||||
|
inherit (ocaml.meta) platforms;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,22 +1,18 @@
|
||||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
|
{ lib, fetchzip, buildDunePackage }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
buildDunePackage rec {
|
||||||
name = "ocaml${ocaml.version}-integers-0.2.2";
|
pname = "integers";
|
||||||
|
version = "0.3.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchzip {
|
||||||
url = https://github.com/ocamllabs/ocaml-integers/releases/download/v0.2.2/integers-0.2.2.tbz;
|
url = "https://github.com/ocamllabs/ocaml-integers/archive/${version}.tar.gz";
|
||||||
sha256 = "08b1ljw88ny3l0mdq6xmffjk8anfc77igryva5jz1p6f4f746ywk";
|
sha256 = "1yhif5zh4srh63mhimfx3p5ljpb3lixjdd3i9pjnbj2qgpzlqj8p";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
|
||||||
|
|
||||||
inherit (topkg) buildPhase installPhase;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Various signed and unsigned integer types for OCaml";
|
description = "Various signed and unsigned integer types for OCaml";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
homepage = https://github.com/ocamllabs/ocaml-integers;
|
homepage = https://github.com/ocamllabs/ocaml-integers;
|
||||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
maintainers = [ lib.maintainers.vbgl ];
|
||||||
inherit (ocaml.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue