2016-06-02 14:26:44 +03:00
|
|
|
{ stdenv, fetchurl, qt4, dbus, zlib, openssl, readline, perl }:
|
2010-07-28 15:55:54 +04:00
|
|
|
|
2010-04-16 19:56:28 +04:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "wvstreams-4.6.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://wvstreams.googlecode.com/files/wvstreams-4.6.1.tar.gz;
|
|
|
|
sha256 = "0cvnq3mvh886gmxh0km858aqhx30hpyrfpg1dh6ara9sz3xza0w4";
|
|
|
|
};
|
|
|
|
|
2011-06-17 01:19:13 +04:00
|
|
|
patches = [ ./compile.patch ];
|
|
|
|
|
2010-04-16 19:56:28 +04:00
|
|
|
preConfigure = ''
|
|
|
|
find -type f | xargs sed -i 's@/bin/bash@bash@g'
|
2014-02-02 19:18:09 +04:00
|
|
|
|
|
|
|
sed -e '1i#include <unistd.h>' -i $(find . -name '*.c' -o -name '*.cc')
|
2010-04-16 19:56:28 +04:00
|
|
|
'';
|
|
|
|
|
2016-06-02 14:26:44 +03:00
|
|
|
buildInputs = [ qt4 dbus zlib openssl readline perl ];
|
2010-04-16 19:56:28 +04:00
|
|
|
|
|
|
|
meta = {
|
2010-07-28 15:55:54 +04:00
|
|
|
description = "Network programming library in C++";
|
2010-04-16 19:56:28 +04:00
|
|
|
homepage = http://alumnit.ca/wiki/index.php?page=WvStreams;
|
|
|
|
license = "LGPL";
|
2010-07-28 15:55:54 +04:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
2010-04-16 19:56:28 +04:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|