mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
parent
3783316b6a
commit
18474c1842
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchurl, openssl}:
|
{ stdenv, fetchurl, openssl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mysocketw-031026";
|
name = "mysocketw-031026";
|
||||||
@ -9,11 +9,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./gcc.patch ];
|
patches = [ ./gcc.patch ];
|
||||||
|
|
||||||
configurePhase = ''
|
buildInputs = [ openssl ];
|
||||||
sed -i s,/usr/local,$out, Makefile.conf
|
|
||||||
|
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace src/Makefile \
|
||||||
|
--replace -Wl,-soname, -Wl,-install_name,$out/lib/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ openssl ];
|
makeFlags = [ "PREFIX=$(out)" "CXX=c++" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
|
description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
|
||||||
|
Loading…
Reference in New Issue
Block a user