1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

Fix wvdial build by inserting missing unistd.h includes

This commit is contained in:
Michael Raskin 2014-02-02 19:18:09 +04:00
parent 8f897d2d39
commit ba4461f96f
2 changed files with 4 additions and 0 deletions

View file

@ -12,6 +12,8 @@ stdenv.mkDerivation {
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 = [ qt4 dbus zlib openssl readline perl ];

View file

@ -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 <unistd.h>' -i $(find . -name '*.cc')
'';
meta = {