1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/development/libraries/wvstreams/default.nix
2015-07-09 21:56:21 +02:00

29 lines
804 B
Nix

{ stdenv, gcc46, fetchurl, qt4, dbus, zlib, openssl, readline, perl }:
stdenv.mkDerivation {
name = "wvstreams-4.6.1";
src = fetchurl {
url = http://wvstreams.googlecode.com/files/wvstreams-4.6.1.tar.gz;
sha256 = "0cvnq3mvh886gmxh0km858aqhx30hpyrfpg1dh6ara9sz3xza0w4";
};
patches = [ ./compile.patch ];
preConfigure = ''
find -type f | xargs sed -i 's@/bin/bash@bash@g'
sed -e '1i#include <unistd.h>' -i $(find . -name '*.c' -o -name '*.cc')
'';
buildInputs = [ gcc46 qt4 dbus zlib openssl readline perl ];
meta = {
description = "Network programming library in C++";
homepage = http://alumnit.ca/wiki/index.php?page=WvStreams;
license = "LGPL";
maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = stdenv.lib.platforms.linux;
};
}