nixpkgs/pkgs/by-name/vu/vulkan-helper/package.nix

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

39 lines
958 B
Nix
Raw Normal View History

2023-09-14 20:00:53 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, vulkan-loader
, addDriverRunpath
2023-09-14 20:00:53 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "vulkan-helper";
version = "unstable-2023-12-22";
2023-09-14 20:00:53 +00:00
src = fetchFromGitHub {
owner = "imLinguin";
repo = "vulkan-helper-rs";
rev = "04b290c92febcfd6293fcf4730ce3bba55cd9ce0";
hash = "sha256-2pLHnTn0gJKz4gfrR6h85LHOaZPrhIGYzQeci4Dzz2E=";
2023-09-14 20:00:53 +00:00
};
cargoHash = "sha256-OXMz1qu4/LDeQbwe7shhn2Eee15xKmBpWSsP0IbjoGM=";
2023-09-14 20:00:53 +00:00
nativeBuildInputs = [
addDriverRunpath
2023-09-14 20:00:53 +00:00
];
postFixup = ''
patchelf --add-rpath ${vulkan-loader}/lib $out/bin/vulkan-helper
addDriverRunpath $out/bin/vulkan-helper
2023-09-14 20:00:53 +00:00
'';
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;
2023-11-23 02:51:17 +00:00
mainProgram = "vulkan-helper";
2023-09-14 20:00:53 +00:00
};
}