nixpkgs/pkgs/development/tools/gotraceui/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1,017 B
Nix
Raw Normal View History

2023-03-31 09:13:10 +02:00
{
stdenv, lib, fetchFromGitHub, pkg-config, buildGoModule,
libGL, libX11, libXcursor, libXfixes, libxkbcommon, vulkan-headers, wayland,
}:
buildGoModule rec {
pname = "gotraceui";
2023-08-13 17:30:22 +02:00
version = "0.3.0";
2023-03-31 09:13:10 +02:00
src = fetchFromGitHub {
owner = "dominikh";
repo = "gotraceui";
rev = "v${version}";
2023-08-13 17:30:22 +02:00
sha256 = "sha256-hdI1TT33pPHK5018RQ+riPVqzqOF/xDkvh0WoYi6Pes=";
2023-03-31 09:13:10 +02:00
};
2023-08-13 17:30:22 +02:00
vendorHash = "sha256-nXPiwSG2Hs86/raDvTv2p77P6Xwm+t8VT0dvZpXE8Os=";
2023-03-31 09:13:10 +02:00
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 ];
};
}