Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
963 B
Nix
40 lines
963 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
vulkan-loader,
|
|
addDriverRunpath,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "vulkan-helper";
|
|
version = "0-unstable-2023-12-22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "imLinguin";
|
|
repo = "vulkan-helper-rs";
|
|
rev = "04b290c92febcfd6293fcf4730ce3bba55cd9ce0";
|
|
hash = "sha256-2pLHnTn0gJKz4gfrR6h85LHOaZPrhIGYzQeci4Dzz2E=";
|
|
};
|
|
|
|
cargoHash = "sha256-9Zc949redmYLCgDR9pabR4ZTtcvOjrXvviRdsb8AiBU=";
|
|
|
|
nativeBuildInputs = [
|
|
addDriverRunpath
|
|
];
|
|
|
|
postFixup = ''
|
|
patchelf --add-rpath ${vulkan-loader}/lib $out/bin/vulkan-helper
|
|
addDriverRunpath $out/bin/vulkan-helper
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Simple CLI app used to interface with basic Vulkan APIs";
|
|
homepage = "https://github.com/imLinguin/vulkan-helper-rs";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "vulkan-helper";
|
|
};
|
|
}
|