Skip to content

Commit ed16681

Browse files
authored
gotraceui: fix build (#406789)
2 parents 002ebbc + 6a8e9b4 commit ed16681

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

pkgs/by-name/go/gotraceui/package.nix

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
libxkbcommon,
1111
vulkan-headers,
1212
wayland,
13+
fetchpatch,
1314
}:
1415

1516
buildGoModule rec {
@@ -19,11 +20,19 @@ buildGoModule rec {
1920
src = fetchFromGitHub {
2021
owner = "dominikh";
2122
repo = "gotraceui";
22-
rev = "v${version}";
23+
tag = "v${version}";
2324
sha256 = "sha256-Rforuh9YlTv/mTpQm0+BaY+Ssc4DAiDCzVkIerP5Uz0=";
2425
};
2526

26-
vendorHash = "sha256-dNV5u6BG+2Nzci6dX/4/4WAeM/zXE5+Ix0HqIsNnm0E=";
27+
patches = [
28+
(fetchpatch {
29+
name = "switch-to-gio-fork.patch";
30+
url = "https://github.com/dominikh/gotraceui/commit/00289f5f4c1da3e13babd2389e533b069cd18e3c.diff";
31+
hash = "sha256-dxsVMjyKkRG4Q6mONlJAohWJ8YTu8KN7ynPVycJhcs8=";
32+
})
33+
];
34+
35+
vendorHash = "sha256-9rzcSxlOuQC5bt1kZuRX7CTQaDHKrtGRpMNLrOHTjJk=";
2736
subPackages = [ "cmd/gotraceui" ];
2837

2938
nativeBuildInputs = [ pkg-config ];

0 commit comments

Comments
 (0)