parent
710e28bdd8
commit
e1b9556f87
@ -1,29 +1,25 @@ |
||||
{ stdenv, fetchzip, which, openssl, ocaml, findlib }: |
||||
{ lib, buildDunePackage, fetchFromGitHub, pkg-config, openssl }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "ocaml${ocaml.version}-ssl-${version}"; |
||||
version = "0.5.5"; |
||||
buildDunePackage rec { |
||||
pname = "ssl"; |
||||
version = "0.5.9"; |
||||
|
||||
src = fetchzip { |
||||
url = "https://github.com/savonet/ocaml-ssl/releases/download/${version}/ocaml-ssl-${version}.tar.gz"; |
||||
sha256 = "0j5zvsx51dg5r7sli7bakv7gfd29z890h0xzi876pg9vywwz9w7l"; |
||||
src = fetchFromGitHub { |
||||
owner = "savonet"; |
||||
repo = "ocaml-ssl"; |
||||
rev = version; |
||||
sha256 = "04h02rvzrwp886n5hsx84rnc9b150iggy38g5v1x1rwz3pkdnmf0"; |
||||
}; |
||||
|
||||
buildInputs = [which ocaml findlib]; |
||||
|
||||
nativeBuildInputs = [ pkg-config ]; |
||||
propagatedBuildInputs = [openssl]; |
||||
|
||||
dontAddPrefix = true; |
||||
|
||||
createFindlibDestdir = true; |
||||
|
||||
meta = { |
||||
homepage = http://savonet.rastageeks.org/; |
||||
description = "OCaml bindings for libssl "; |
||||
license = "LGPL+link exception"; |
||||
platforms = ocaml.meta.platforms or []; |
||||
maintainers = [ |
||||
stdenv.lib.maintainers.z77z |
||||
lib.maintainers.z77z |
||||
]; |
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue