nixpkgs/pkgs/tools/graphics/vulkan-caps-viewer/default.nix

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

64 lines
1.7 KiB
Nix
Raw Normal View History

2022-08-08 18:04:17 +00:00
{ lib
, stdenv
, fetchFromGitHub
, qmake
, vulkan-loader
2023-03-17 11:07:09 +00:00
, wayland
2022-08-08 18:04:17 +00:00
, wrapQtAppsHook
, x11Support ? true
2022-08-08 18:04:17 +00:00
, qtx11extras
}:
stdenv.mkDerivation rec {
pname = "vulkan-caps-viewer";
2024-10-04 09:52:12 +00:00
version = "3.43";
2022-08-08 18:04:17 +00:00
src = fetchFromGitHub {
owner = "SaschaWillems";
repo = "VulkanCapsViewer";
2022-11-21 14:47:00 +00:00
rev = version;
2024-10-04 09:52:12 +00:00
hash = "sha256-GwE/E8GgVIeZtCefLNvacDUxI2C+Uf8zgpOQ1NpiSmM=";
2022-08-08 18:04:17 +00:00
# Note: this derivation strictly requires vulkan-header to be the same it was developed against.
2022-11-21 14:47:00 +00:00
# To help us, they've put it in a git-submodule.
# The result will work with any vulkan-loader version.
2022-08-08 18:04:17 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [
qmake
wrapQtAppsHook
];
buildInputs = [
vulkan-loader
2023-03-17 11:07:09 +00:00
wayland
] ++ lib.lists.optionals x11Support [ qtx11extras ];
2022-08-08 18:04:17 +00:00
patchPhase = ''
substituteInPlace vulkanCapsViewer.pro \
--replace '/usr/' "/"
'';
qmakeFlags = [
"CONFIG+=release"
2023-03-17 11:07:09 +00:00
];
2022-08-08 18:04:17 +00:00
installFlags = [ "INSTALL_ROOT=$(out)" ];
meta = with lib; {
mainProgram = "vulkanCapsViewer";
2022-08-08 18:04:17 +00:00
description = "Vulkan hardware capability viewer";
longDescription = ''
Client application to display hardware implementation details for GPUs supporting the Vulkan API by Khronos.
The hardware reports can be submitted to a public online database that allows comparing different devices, browsing available features, extensions, formats, etc.
'';
homepage = "https://vulkan.gpuinfo.org/";
platforms = platforms.unix;
license = licenses.gpl2Only;
2022-08-08 18:04:17 +00:00
maintainers = with maintainers; [ pedrohlc ];
changelog = "https://github.com/SaschaWillems/VulkanCapsViewer/releases/tag/${version}";
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
broken = stdenv.hostPlatform.isDarwin;
2022-08-08 18:04:17 +00:00
};
}