Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
buildGoModule,
|
|
libGL,
|
|
libX11,
|
|
libxcb,
|
|
libXcursor,
|
|
libXfixes,
|
|
libxkbcommon,
|
|
vulkan-headers,
|
|
wayland,
|
|
fetchpatch,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gotraceui";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dominikh";
|
|
repo = "gotraceui";
|
|
tag = "v${version}";
|
|
sha256 = "sha256-Rforuh9YlTv/mTpQm0+BaY+Ssc4DAiDCzVkIerP5Uz0=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "switch-to-gio-fork.patch";
|
|
url = "https://github.com/dominikh/gotraceui/commit/00289f5f4c1da3e13babd2389e533b069cd18e3c.diff";
|
|
hash = "sha256-dxsVMjyKkRG4Q6mONlJAohWJ8YTu8KN7ynPVycJhcs8=";
|
|
})
|
|
];
|
|
|
|
vendorHash = "sha256-9rzcSxlOuQC5bt1kZuRX7CTQaDHKrtGRpMNLrOHTjJk=";
|
|
subPackages = [ "cmd/gotraceui" ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
vulkan-headers
|
|
libxkbcommon
|
|
wayland
|
|
libX11
|
|
libxcb
|
|
libXcursor
|
|
libXfixes
|
|
libGL
|
|
];
|
|
|
|
ldflags = [ "-X gioui.org/app.ID=co.honnef.Gotraceui" ];
|
|
|
|
postInstall = ''
|
|
cp -r share $out/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Efficient frontend for Go execution traces";
|
|
mainProgram = "gotraceui";
|
|
homepage = "https://github.com/dominikh/gotraceui";
|
|
platforms = platforms.linux;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dominikh ];
|
|
};
|
|
}
|