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:
parent
8f897d2d39
commit
ba4461f96f
|
@ -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 ];
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue