about summary refs log tree commit diff
path: root/pkgs/tools/graphics/gfxreconstruct
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2024-06-11 11:22:24 +0200
committerGitHub <noreply@github.com>2024-06-11 11:22:24 +0200
commit8c931d0ab0d918797e0133988403ac2a2a8e6443 (patch)
tree91a57854580ca8b4809413743500dbc94c18d4c6 /pkgs/tools/graphics/gfxreconstruct
parent0ba880e50a5d48f7502f10e3b2a37671b745d7c4 (diff)
parent0dfdc9a874789b2848eb9ccb3aa4eafb5da6be7b (diff)
Merge pull request #285594 from Flakebi/gfxreconstruct
gfxreconstruct: wrap properly
Diffstat (limited to 'pkgs/tools/graphics/gfxreconstruct')
-rw-r--r--pkgs/tools/graphics/gfxreconstruct/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/graphics/gfxreconstruct/default.nix b/pkgs/tools/graphics/gfxreconstruct/default.nix
index 5e5cbfbabc59f..78dabc68a61b0 100644
--- a/pkgs/tools/graphics/gfxreconstruct/default.nix
+++ b/pkgs/tools/graphics/gfxreconstruct/default.nix
@@ -50,10 +50,17 @@ stdenv.mkDerivation rec {
       --replace "scriptdir, '..', cmd" 'scriptdir'
   '';
 
-  # Fix the path to the layer library
+  # Fix the paths to load the layer.
+  # Also remove the .py suffix on files so that gfxrecon
+  # does not try to start the wrapper bash scripts with python.
   postInstall = ''
     substituteInPlace $out/share/vulkan/explicit_layer.d/VkLayer_gfxreconstruct.json \
       --replace 'libVkLayer_gfxreconstruct.so' "$out/lib/libVkLayer_gfxreconstruct.so"
+    for f in $out/bin/*.py; do
+      mv -- "$f" "''${f%%.py}"
+    done
+    wrapProgram $out/bin/gfxrecon-capture-vulkan \
+      --prefix VK_ADD_LAYER_PATH : "$out/share/vulkan/explicit_layer.d"
     wrapProgram $out/bin/gfxrecon-replay \
       --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}
   '';
@@ -61,6 +68,7 @@ stdenv.mkDerivation rec {
   meta = with lib; {
     description = "Graphics API Capture and Replay Tools";
     homepage = "https://github.com/LunarG/gfxreconstruct/";
+    changelog = "https://github.com/LunarG/gfxreconstruct/releases/tag/v${version}";
     license = licenses.mit;
     maintainers = with maintainers; [ Flakebi ];
     platforms = platforms.linux;