2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl, boost, openssl
|
2018-06-11 19:03:09 +01:00
|
|
|
, version, sha256, ...
|
|
|
|
}:
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
with lib;
|
2018-06-11 19:03:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "asio";
|
|
|
|
inherit version;
|
2018-06-11 19:03:09 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/asio/asio-${version}.tar.bz2";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ boost ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://asio.sourceforge.net/";
|
2018-06-11 19:03:09 +01:00
|
|
|
description = "Cross-platform C++ library for network and low-level I/O programming";
|
|
|
|
license = licenses.boost;
|
2021-01-21 17:00:13 +00:00
|
|
|
broken = stdenv.isDarwin && lib.versionOlder version "1.16.1";
|
2018-06-11 19:03:09 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|