mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 00:43:24 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib, fetchFromGitHub, pkg-config, buildGoModule,
|
|
libGL, libX11, libXcursor, libXfixes, libxkbcommon, vulkan-headers, wayland,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gotraceui";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dominikh";
|
|
repo = "gotraceui";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Rforuh9YlTv/mTpQm0+BaY+Ssc4DAiDCzVkIerP5Uz0=";
|
|
};
|
|
|
|
vendorHash = "sha256-dNV5u6BG+2Nzci6dX/4/4WAeM/zXE5+Ix0HqIsNnm0E=";
|
|
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 = "Efficient frontend for Go execution traces";
|
|
mainProgram = "gotraceui";
|
|
homepage = "https://github.com/dominikh/gotraceui";
|
|
platforms = platforms.linux;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dominikh ];
|
|
};
|
|
}
|