python313Packages.yalexs: 8.10.0 -> 8.11.0 (#375890)
[NixPkgs.git] / pkgs / by-name / vu / vulkan-helper / package.nix
blob30dc0250943bc79386057631dfc7a930fc83c939
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   vulkan-loader,
6   addDriverRunpath,
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "vulkan-helper";
11   version = "unstable-2023-12-22";
13   src = fetchFromGitHub {
14     owner = "imLinguin";
15     repo = "vulkan-helper-rs";
16     rev = "04b290c92febcfd6293fcf4730ce3bba55cd9ce0";
17     hash = "sha256-2pLHnTn0gJKz4gfrR6h85LHOaZPrhIGYzQeci4Dzz2E=";
18   };
20   cargoHash = "sha256-OXMz1qu4/LDeQbwe7shhn2Eee15xKmBpWSsP0IbjoGM=";
22   nativeBuildInputs = [
23     addDriverRunpath
24   ];
26   postFixup = ''
27     patchelf --add-rpath ${vulkan-loader}/lib $out/bin/vulkan-helper
28     addDriverRunpath $out/bin/vulkan-helper
29   '';
31   meta = with lib; {
32     description = "Simple CLI app used to interface with basic Vulkan APIs";
33     homepage = "https://github.com/imLinguin/vulkan-helper-rs";
34     license = licenses.mit;
35     maintainers = with maintainers; [ aidalgol ];
36     platforms = platforms.linux;
37     mainProgram = "vulkan-helper";
38   };