2018-03-21 22:54:35 +00:00
|
|
|
{ stdenv, fetchurl, openssl }:
|
2012-02-24 21:13:14 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2012-02-24 21:13:14 +00:00
|
|
|
name = "mysocketw-031026";
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://www.digitalfanatics.org/cal/socketw/files/SocketW031026.tar.gz";
|
2012-02-24 21:13:14 +00:00
|
|
|
sha256 = "0crinikhdl7xihzmc3k3k41pgxy16d5ci8m9sza1lbibns7pdwj4";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./gcc.patch ];
|
|
|
|
|
2018-03-21 22:54:35 +00:00
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace src/Makefile \
|
|
|
|
--replace -Wl,-soname, -Wl,-install_name,$out/lib/
|
2012-02-24 21:13:14 +00:00
|
|
|
'';
|
|
|
|
|
2018-03-21 22:54:35 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" "CXX=c++" ];
|
2012-02-24 21:13:14 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2012-02-24 21:13:14 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|