lol

bangarang: fix build with gcc 4.7

+47
+2
pkgs/applications/video/bangarang/default.nix
··· 10 10 buildInputs = [ kdelibs phonon soprano shared_desktop_ontologies kdemultimedia taglib gettext ]; 11 11 nativeBuildInputs = [ cmake ]; 12 12 13 + patches = [ ./gcc-4.7.patch ]; 14 + 13 15 meta = with stdenv.lib; { 14 16 description = "A media player for KDE based on Nepomuk and Phonon"; 15 17 longDescription = ''
+45
pkgs/applications/video/bangarang/gcc-4.7.patch
··· 1 + commit b893fcdb7ddfc8c59fd29a29b7265a713c3dbab1 2 + Author: Alex Fiestas <afiestas@kde.org> 3 + Date: Thu Mar 29 10:09:22 2012 +0200 4 + 5 + Build fix: Add unistd.h include since sleep is defined there 6 + 7 + diff --git a/src/platform/infofetchers/lastfminfofetcher.cpp b/src/platform/infofetchers/lastfminfofetcher.cpp 8 + index 0c49d69..fcc4cd3 100644 9 + --- a/src/platform/infofetchers/lastfminfofetcher.cpp 10 + +++ b/src/platform/infofetchers/lastfminfofetcher.cpp 11 + @@ -32,6 +32,8 @@ 12 + #include <QFile> 13 + #include <QTextEdit> 14 + 15 + +#include <unistd.h> 16 + + 17 + LastfmInfoFetcher::LastfmInfoFetcher(QObject *parent) : 18 + InfoFetcher(parent) 19 + { 20 + diff --git a/src/platform/infofetchers/tmdbinfofetcher.cpp b/src/platform/infofetchers/tmdbinfofetcher.cpp 21 + index 7801644..3c01960 100644 22 + --- a/src/platform/infofetchers/tmdbinfofetcher.cpp 23 + +++ b/src/platform/infofetchers/tmdbinfofetcher.cpp 24 + @@ -30,6 +30,8 @@ 25 + #include <QDomDocument> 26 + #include <QFile> 27 + 28 + +#include <unistd.h> 29 + + 30 + TMDBInfoFetcher::TMDBInfoFetcher(QObject *parent) : 31 + InfoFetcher(parent) 32 + { 33 + diff --git a/src/platform/infofetchers/tvdbinfofetcher.cpp b/src/platform/infofetchers/tvdbinfofetcher.cpp 34 + index ff351b0..670ed18 100644 35 + --- a/src/platform/infofetchers/tvdbinfofetcher.cpp 36 + +++ b/src/platform/infofetchers/tvdbinfofetcher.cpp 37 + @@ -30,6 +30,8 @@ 38 + #include <QDomDocument> 39 + #include <QFile> 40 + 41 + +#include <unistd.h> 42 + + 43 + TVDBInfoFetcher::TVDBInfoFetcher(QObject *parent) : 44 + InfoFetcher(parent) 45 + {