1{ stdenv, gcc46, fetchurl, qt4, dbus, zlib, openssl, readline, perl }:
2
3stdenv.mkDerivation {
4 name = "wvstreams-4.6.1";
5
6 src = fetchurl {
7 url = http://wvstreams.googlecode.com/files/wvstreams-4.6.1.tar.gz;
8 sha256 = "0cvnq3mvh886gmxh0km858aqhx30hpyrfpg1dh6ara9sz3xza0w4";
9 };
10
11 patches = [ ./compile.patch ];
12
13 preConfigure = ''
14 find -type f | xargs sed -i 's@/bin/bash@bash@g'
15
16 sed -e '1i#include <unistd.h>' -i $(find . -name '*.c' -o -name '*.cc')
17 '';
18
19 buildInputs = [ gcc46 qt4 dbus zlib openssl readline perl ];
20
21 meta = {
22 description = "Network programming library in C++";
23 homepage = http://alumnit.ca/wiki/index.php?page=WvStreams;
24 license = "LGPL";
25 maintainers = [ stdenv.lib.maintainers.marcweber ];
26 platforms = stdenv.lib.platforms.linux;
27 };
28}