2021-02-24 18:30:23 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, freetype
|
|
|
|
, gtk3
|
|
|
|
, lib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, SDL2
|
|
|
|
, stdenv
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gpuvis";
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "20211204";
|
2021-02-24 18:30:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mikesart";
|
|
|
|
repo = pname;
|
2022-01-19 23:45:15 +00:00
|
|
|
rev = "7f47419470687c7ecbdf086b81f5bafdb05d1bef";
|
|
|
|
sha256 = "sha256-29Bv+y0zWzn7QtpsjRV6hr19bCeyVJusPcYiAIEIluk=";
|
2021-02-24 18:30:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# patch dlopen path for gtk3
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/hook_gtk3.h \
|
|
|
|
--replace "libgtk-3.so" "${lib.getLib gtk3}/lib/libgtk-3.so"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config meson ninja wrapGAppsHook ];
|
|
|
|
|
|
|
|
buildInputs = [ SDL2 gtk3 freetype ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GPU Trace Visualizer";
|
|
|
|
homepage = "https://github.com/mikesart/gpuvis";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ emantor ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|