mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 06:55:10 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
39 lines
958 B
Nix
39 lines
958 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, vulkan-loader
|
|
, addDriverRunpath
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "vulkan-helper";
|
|
version = "unstable-2023-12-22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "imLinguin";
|
|
repo = "vulkan-helper-rs";
|
|
rev = "04b290c92febcfd6293fcf4730ce3bba55cd9ce0";
|
|
hash = "sha256-2pLHnTn0gJKz4gfrR6h85LHOaZPrhIGYzQeci4Dzz2E=";
|
|
};
|
|
|
|
cargoHash = "sha256-OXMz1qu4/LDeQbwe7shhn2Eee15xKmBpWSsP0IbjoGM=";
|
|
|
|
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";
|
|
};
|
|
}
|