1 { lib, stdenv, fetchurl, openssl }:
4 name = "mysocketw-031026";
6 url = "http://www.digitalfanatics.org/cal/socketw/files/SocketW031026.tar.gz";
7 sha256 = "0crinikhdl7xihzmc3k3k41pgxy16d5ci8m9sza1lbibns7pdwj4";
10 patches = [ ./gcc.patch ];
12 buildInputs = [ openssl ];
14 postPatch = lib.optionalString stdenv.isDarwin ''
15 substituteInPlace src/Makefile \
16 --replace -Wl,-soname, -Wl,-install_name,$out/lib/
19 makeFlags = [ "PREFIX=$(out)" "CXX=${stdenv.cc.targetPrefix}c++" ];
22 description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
23 license = lib.licenses.lgpl21Plus;
24 platforms = lib.platforms.all;