2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, qt4, qmake4Hook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "valkyrie";
|
|
|
|
version = "2.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "https://valgrind.org/downloads/${pname}-${version}.tar.bz2";
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.valgrind.org/";
|
|
|
|
description = "Qt4-based GUI for the Valgrind 3.6.x series";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
|
|
|
}
|