summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ssl/default.nix
blob: 6d57bd3bbf51acbb50acff3f9a36c9cc69c6b88e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{stdenv, fetchurl, which, openssl, ocaml, findlib}:

let
  ocaml_version = (builtins.parseDrvName ocaml.name).version;
  version = "0.4.4";
in

stdenv.mkDerivation {
  name = "ocaml-ssl-${version}";

  src = fetchurl {
    url = "mirror://debian/pool/main/o/ocaml-ssl/ocaml-ssl_${version}.orig.tar.gz";
    sha256 = "1m45d0bd4ndxswaa1symp6c1npzjmm9pz0nf7w0q15gflqhba5ch";
  };

  buildInputs = [which openssl ocaml findlib];

  dontAddPrefix = true;

  configureFlags = "--disable-ldconf";

  meta = {
    homepage = http://savonet.rastageeks.org/;
    description = "OCaml bindings for libssl ";
    license = "LGPL+link exception";
  };
}