Merge pull request #224032 from dominikh/gotraceui

gotraceui: init at 0.1.0
This commit is contained in:
Weijia Wang 2023-04-11 09:07:59 +03:00 committed by GitHub
commit 63cb39fe24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{
stdenv, lib, fetchFromGitHub, pkg-config, buildGoModule,
libGL, libX11, libXcursor, libXfixes, libxkbcommon, vulkan-headers, wayland,
}:
buildGoModule rec {
pname = "gotraceui";
version = "0.1.0";
src = fetchFromGitHub {
owner = "dominikh";
repo = "gotraceui";
rev = "v${version}";
sha256 = "sha256-KgDQ0lL3J1QT5Oij+4Nu3wpzvGiCTaOTIBTd5WJhhz8=";
};
vendorSha256 = "sha256-qnHU/Ht5+BGVoGbz2h9/k3gD1L2qAW0eZJ2xBzJatHQ=";
subPackages = ["cmd/gotraceui"];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
vulkan-headers
libxkbcommon
wayland
libX11
libXcursor
libXfixes
libGL
];
ldflags = ["-X gioui.org/app.ID=co.honnef.Gotraceui"];
postInstall = ''
cp -r share $out/
'';
meta = with lib; {
description = "An efficient frontend for Go execution traces";
homepage = "https://github.com/dominikh/gotraceui";
platforms = platforms.linux;
license = licenses.mit;
maintainers = with maintainers; [ dominikh ];
};
}

View file

@ -26925,6 +26925,8 @@ with pkgs;
gosec = callPackage ../development/tools/gosec { };
gotraceui = callPackage ../development/tools/gotraceui { };
govers = callPackage ../development/tools/govers { };
govendor = callPackage ../development/tools/govendor { };