9 rustPlatform.buildRustPackage rec {
10 pname = "memtest_vulkan";
13 src = fetchFromGitHub {
14 owner = "GpuZelenograd";
15 repo = "memtest_vulkan";
17 hash = "sha256-8tmQtycK7D5bol9v5VL8VkROZbSCndHo+uBvqqFTZjw=";
20 cargoHash = "sha256-8x8bS0LcvoxoSBWbGdkKzhxDi/9VNab26eidv8YK9dg=";
22 # It doesn't discover this on its own :/
23 # https://github.com/GpuZelenograd/memtest_vulkan/issues/36
24 postFixup = lib.optionalString stdenv.targetPlatform.isElf ''
25 patchelf $out/bin/memtest_vulkan --add-needed libvulkan.so --add-rpath ${
26 lib.makeLibraryPath [ vulkan-loader ]
31 description = "Vulkan compute tool for testing video memory stability";
32 homepage = "https://github.com/GpuZelenograd/memtest_vulkan";
33 license = licenses.zlib;
34 maintainers = with maintainers; [ atemu ];
35 mainProgram = "memtest_vulkan";
37 stdenv.system == "aarch64-linux" # error: linker `aarch64-linux-gnu-gcc` not found
38 || stdenv.hostPlatform.isDarwin; # Can't find Vulkan; might work though?