diff options
author | Eric Merritt <eric@afiniate.com> | 2015-05-15 09:31:44 -0500 |
---|---|---|
committer | Eric Merritt <eric@afiniate.com> | 2015-05-24 12:33:13 -0700 |
commit | fbba3c1c33aca5d2e5161e69b9d8eefce49d9a6a (patch) | |
tree | 18133b046a31805e907597986a9bc1ef801897e7 | |
parent | cd0836233ade87180327194b8903ec3f2532c936 (diff) | |
download | nixpkgs-fbba3c1c33aca5d2e5161e69b9d8eefce49d9a6a.tar nixpkgs-fbba3c1c33aca5d2e5161e69b9d8eefce49d9a6a.tar.gz nixpkgs-fbba3c1c33aca5d2e5161e69b9d8eefce49d9a6a.tar.bz2 nixpkgs-fbba3c1c33aca5d2e5161e69b9d8eefce49d9a6a.tar.lz nixpkgs-fbba3c1c33aca5d2e5161e69b9d8eefce49d9a6a.tar.xz nixpkgs-fbba3c1c33aca5d2e5161e69b9d8eefce49d9a6a.tar.zst nixpkgs-fbba3c1c33aca5d2e5161e69b9d8eefce49d9a6a.zip |
ocaml-ctypes: add initial version (0.4.1) to the system
-rw-r--r-- | pkgs/development/ocaml-modules/ctypes/default.nix | 32 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ctypes/default.nix b/pkgs/development/ocaml-modules/ctypes/default.nix new file mode 100644 index 00000000000..43c7ddbb290 --- /dev/null +++ b/pkgs/development/ocaml-modules/ctypes/default.nix @@ -0,0 +1,32 @@ +{stdenv, buildOcaml, fetchurl, libffi, pkgconfig, ncurses}: + +buildOcaml rec { + name = "ctypes"; + version = "0.4.1"; + + src = fetchurl { + url = "https://github.com/ocamllabs/ocaml-ctypes/archive/${version}.tar.gz"; + sha256 = "74564e049de5d3c0e76ea284c225cb658ac1a2b483345be1efb9be4b3c1702f5"; + }; + + buildInputs = [ ncurses pkgconfig ]; + propagatedBuildInputs = [ libffi ]; + + hasSharedObjects = true; + + buildPhase = '' + make XEN=false libffi.config ctypes-base ctypes-stubs + make XEN=false ctypes-foreign + ''; + + installPhase = '' + make install XEN=false + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/ocamllabs/ocaml-ctypes; + description = "Library for binding to C libraries using pure OCaml"; + license = licenses.mit; + maintainers = [ maintainers.ericbmerritt ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fcea3eb8c20..acc7ccbee33 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4134,6 +4134,8 @@ let custom_printf = callPackage ../development/ocaml-modules/custom_printf { }; + ctypes = callPackage ../development/ocaml-modules/ctypes { }; + deriving = callPackage ../development/tools/ocaml/deriving { }; dolog = callPackage ../development/ocaml-modules/dolog { }; |