mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
vulkan-helper: init at 2023-08-09
This commit is contained in:
parent
98e1e2d61a
commit
ae56b64b71
37
pkgs/tools/graphics/vulkan-helper/default.nix
Normal file
37
pkgs/tools/graphics/vulkan-helper/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, vulkan-loader
|
||||
, addOpenGLRunpath
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "vulkan-helper";
|
||||
version = "unstable-2023-09-16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "imLinguin";
|
||||
repo = "vulkan-helper-rs";
|
||||
rev = "d65b1a17a11ec20670c77d8da02e68d388ed0888";
|
||||
hash = "sha256-usbYNalA0r09LXR6eV2e/T1eMNV4LnhzYLzPJQ6XNKQ=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-s5QytuNhjZQhIDJtpeAW3J4op1t4nC+xD2i7Zf5mzfw=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
addOpenGLRunpath
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
patchelf --add-rpath ${vulkan-loader}/lib $out/bin/vulkan-helper
|
||||
addOpenGLRunpath $out/bin/vulkan-helper
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A 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;
|
||||
};
|
||||
}
|
|
@ -25714,6 +25714,8 @@ with pkgs;
|
|||
|
||||
vulkan-cts = callPackage ../tools/graphics/vulkan-cts { };
|
||||
|
||||
vulkan-helper = callPackage ../tools/graphics/vulkan-helper { };
|
||||
|
||||
vulkan-extension-layer = callPackage ../tools/graphics/vulkan-extension-layer { };
|
||||
vulkan-headers = callPackage ../development/libraries/vulkan-headers { };
|
||||
vulkan-loader = callPackage ../development/libraries/vulkan-loader { inherit (darwin) moltenvk; };
|
||||
|
|
Loading…
Reference in a new issue