Merge pull request #202858 from Flakebi/gfxreconstruct

gfxreconstruct: init at 0.9.15

authored by

Anderson Torres and committed by
GitHub
adc00941 424480f0

+69
+67
pkgs/tools/graphics/gfxreconstruct/default.nix
··· 1 + { stdenv 2 + , fetchFromGitHub 3 + , lib 4 + , cmake 5 + , makeWrapper 6 + , pkg-config 7 + , python3 8 + , wayland 9 + , libX11 10 + , libxcb 11 + , lz4 12 + , vulkan-loader 13 + , xcbutilkeysyms 14 + , zlib 15 + , zstd 16 + }: 17 + 18 + stdenv.mkDerivation rec { 19 + pname = "gfxreconstruct"; 20 + version = "0.9.15"; 21 + 22 + src = fetchFromGitHub { 23 + owner = "LunarG"; 24 + repo = "gfxreconstruct"; 25 + rev = "v${version}"; 26 + hash = "sha256-hIzQ5L0Payj8hlyy5UI7RXgnyhQBPqG7nfbvW2VYvTg="; 27 + fetchSubmodules = true; 28 + }; 29 + 30 + buildInputs = [ 31 + libX11 32 + libxcb 33 + lz4 34 + python3 35 + wayland 36 + xcbutilkeysyms 37 + zlib 38 + zstd 39 + ]; 40 + 41 + nativeBuildInputs = [ 42 + cmake 43 + makeWrapper 44 + pkg-config 45 + ]; 46 + 47 + # The python script searches in subfolders, but we want to search in the same bin directory 48 + prePatch = '' 49 + substituteInPlace tools/gfxrecon/gfxrecon.py \ 50 + --replace "scriptdir, '..', cmd" 'scriptdir' 51 + ''; 52 + 53 + # Fix the path to the layer library 54 + postInstall = '' 55 + substituteInPlace $out/share/vulkan/explicit_layer.d/VkLayer_gfxreconstruct.json \ 56 + --replace 'libVkLayer_gfxreconstruct.so' "$out/lib/libVkLayer_gfxreconstruct.so" 57 + wrapProgram $out/bin/gfxrecon-replay \ 58 + --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]} 59 + ''; 60 + 61 + meta = with lib; { 62 + description = "Graphics API Capture and Replay Tools"; 63 + homepage = "https://github.com/LunarG/gfxreconstruct/"; 64 + license = licenses.mit; 65 + maintainers = with maintainers; [ Flakebi ]; 66 + }; 67 + }
+2
pkgs/top-level/all-packages.nix
··· 4582 4582 4583 4583 gdu = callPackage ../tools/system/gdu { }; 4584 4584 4585 + gfxreconstruct = callPackage ../tools/graphics/gfxreconstruct { }; 4586 + 4585 4587 go-chromecast = callPackage ../applications/video/go-chromecast { }; 4586 4588 4587 4589 go-containerregistry = callPackage ../development/tools/go-containerregistry { };