mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
18474c1842
/cc ZHF #36454
27 lines
720 B
Nix
27 lines
720 B
Nix
{ stdenv, fetchurl, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mysocketw-031026";
|
|
src = fetchurl {
|
|
url = http://www.digitalfanatics.org/cal/socketw/files/SocketW031026.tar.gz;
|
|
sha256 = "0crinikhdl7xihzmc3k3k41pgxy16d5ci8m9sza1lbibns7pdwj4";
|
|
};
|
|
|
|
patches = [ ./gcc.patch ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
substituteInPlace src/Makefile \
|
|
--replace -Wl,-soname, -Wl,-install_name,$out/lib/
|
|
'';
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "CXX=c++" ];
|
|
|
|
meta = {
|
|
description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|