valkyrie: fix build

This commit is contained in:
Pascal Wittmann 2018-07-17 21:46:01 +02:00
parent bf2a009380
commit b835b8a95b
No known key found for this signature in database
GPG Key ID: C899ACE7E2322852

View File

@ -8,7 +8,16 @@ stdenv.mkDerivation rec {
sha256 = "0hwvsncf62mdkahwj9c8hpmm94c1wr5jn89370k6rj894kxry2x7";
};
patchPhase = ''
sed -i '1s;^;#include <unistd.h>\n;' src/objects/tool_object.cpp
sed -i '1s;^;#include <unistd.h>\n;' src/utils/vk_config.cpp
sed -i '1s;^;#include <sys/types.h>\n;' src/utils/vk_config.cpp
sed -i '1s;^;#include <unistd.h>\n;' src/utils/vk_utils.cpp
sed -i '1s;^;#include <sys/types.h>\n;' src/utils/vk_utils.cpp
'';
buildInputs = [ qt4 ];
nativeBuildInputs = [ qmake4Hook ];
meta = {
@ -16,6 +25,5 @@ stdenv.mkDerivation rec {
description = "Qt4-based GUI for the Valgrind 3.6.x series";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
broken = true;
};
}