nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 911 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 vulkan-loader, 6 addDriverRunpath, 7}: 8 9rustPlatform.buildRustPackage { 10 pname = "vulkan-helper"; 11 version = "0-unstable-2023-12-22"; 12 13 src = fetchFromGitHub { 14 owner = "imLinguin"; 15 repo = "vulkan-helper-rs"; 16 rev = "04b290c92febcfd6293fcf4730ce3bba55cd9ce0"; 17 hash = "sha256-2pLHnTn0gJKz4gfrR6h85LHOaZPrhIGYzQeci4Dzz2E="; 18 }; 19 20 cargoHash = "sha256-9Zc949redmYLCgDR9pabR4ZTtcvOjrXvviRdsb8AiBU="; 21 22 nativeBuildInputs = [ 23 addDriverRunpath 24 ]; 25 26 postFixup = '' 27 patchelf --add-rpath ${vulkan-loader}/lib $out/bin/vulkan-helper 28 addDriverRunpath $out/bin/vulkan-helper 29 ''; 30 31 meta = { 32 description = "Simple CLI app used to interface with basic Vulkan APIs"; 33 homepage = "https://github.com/imLinguin/vulkan-helper-rs"; 34 license = lib.licenses.mit; 35 platforms = lib.platforms.linux; 36 mainProgram = "vulkan-helper"; 37 }; 38}