lol
at 23.11-beta 45 lines 1.0 kB view raw
1{ 2 stdenv, lib, fetchFromGitHub, pkg-config, buildGoModule, 3 libGL, libX11, libXcursor, libXfixes, libxkbcommon, vulkan-headers, wayland, 4}: 5 6buildGoModule rec { 7 pname = "gotraceui"; 8 version = "0.3.0"; 9 10 src = fetchFromGitHub { 11 owner = "dominikh"; 12 repo = "gotraceui"; 13 rev = "v${version}"; 14 sha256 = "sha256-hdI1TT33pPHK5018RQ+riPVqzqOF/xDkvh0WoYi6Pes="; 15 }; 16 17 vendorHash = "sha256-nXPiwSG2Hs86/raDvTv2p77P6Xwm+t8VT0dvZpXE8Os="; 18 subPackages = ["cmd/gotraceui"]; 19 20 nativeBuildInputs = [ pkg-config ]; 21 22 buildInputs = [ 23 vulkan-headers 24 libxkbcommon 25 wayland 26 libX11 27 libXcursor 28 libXfixes 29 libGL 30 ]; 31 32 ldflags = ["-X gioui.org/app.ID=co.honnef.Gotraceui"]; 33 34 postInstall = '' 35 cp -r share $out/ 36 ''; 37 38 meta = with lib; { 39 description = "An efficient frontend for Go execution traces"; 40 homepage = "https://github.com/dominikh/gotraceui"; 41 platforms = platforms.linux; 42 license = licenses.mit; 43 maintainers = with maintainers; [ dominikh ]; 44 }; 45}