From ba4461f96f14b322ebd03d9cbcf4e0fdc206d595 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 2 Feb 2014 19:18:09 +0400 Subject: [PATCH] Fix wvdial build by inserting missing unistd.h includes --- pkgs/development/libraries/wvstreams/default.nix | 2 ++ pkgs/os-specific/linux/wvdial/default.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pkgs/development/libraries/wvstreams/default.nix b/pkgs/development/libraries/wvstreams/default.nix index 0b551b753f57..ecfc9b88a0e4 100644 --- a/pkgs/development/libraries/wvstreams/default.nix +++ b/pkgs/development/libraries/wvstreams/default.nix @@ -12,6 +12,8 @@ stdenv.mkDerivation { preConfigure = '' find -type f | xargs sed -i 's@/bin/bash@bash@g' + + sed -e '1i#include ' -i $(find . -name '*.c' -o -name '*.cc') ''; buildInputs = [ qt4 dbus zlib openssl readline perl ]; diff --git a/pkgs/os-specific/linux/wvdial/default.nix b/pkgs/os-specific/linux/wvdial/default.nix index eb9d09d2a119..7decd42b376b 100644 --- a/pkgs/os-specific/linux/wvdial/default.nix +++ b/pkgs/os-specific/linux/wvdial/default.nix @@ -15,6 +15,8 @@ stdenv.mkDerivation rec { export makeFlags="prefix=$out" # not sure about this line sed -i 's@/etc/ppp/peers@$out/etc/ppp/peers@' Makefile.in + + sed -e '1i#include ' -i $(find . -name '*.cc') ''; meta = {