1{stdenv, fetchurl, openssl}:
2
3stdenv.mkDerivation rec {
4 name = "mysocketw-031026";
5 src = fetchurl {
6 url = http://www.digitalfanatics.org/cal/socketw/files/SocketW031026.tar.gz;
7 sha256 = "0crinikhdl7xihzmc3k3k41pgxy16d5ci8m9sza1lbibns7pdwj4";
8 };
9
10 patches = [ ./gcc.patch ];
11
12 configurePhase = ''
13 sed -i s,/usr/local,$out, Makefile.conf
14 '';
15
16 buildInputs = [ openssl ];
17
18 meta = {
19 description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
20 license = stdenv.lib.licenses.lgpl21Plus;
21 platforms = stdenv.lib.platforms.all;
22 };
23}