about summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-01-27 17:12:21 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2024-01-28 05:42:14 +0100
commit11b4c5b070d3029319a0260e9bad0a83c6c3be4b (patch)
tree7a28d94b732171be46c33da2604559df86718847 /pkgs/tools/graphics
parent1eb10bd6bdebccee66a483c31422762bd9ea9eac (diff)
downloadnixlib-11b4c5b070d3029319a0260e9bad0a83c6c3be4b.tar
nixlib-11b4c5b070d3029319a0260e9bad0a83c6c3be4b.tar.gz
nixlib-11b4c5b070d3029319a0260e9bad0a83c6c3be4b.tar.bz2
nixlib-11b4c5b070d3029319a0260e9bad0a83c6c3be4b.tar.lz
nixlib-11b4c5b070d3029319a0260e9bad0a83c6c3be4b.tar.xz
nixlib-11b4c5b070d3029319a0260e9bad0a83c6c3be4b.tar.zst
nixlib-11b4c5b070d3029319a0260e9bad0a83c6c3be4b.zip
vulkan-tools: fix build on darwin
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/vulkan-tools/default.nix11
1 files changed, 0 insertions, 11 deletions
diff --git a/pkgs/tools/graphics/vulkan-tools/default.nix b/pkgs/tools/graphics/vulkan-tools/default.nix
index 087326f71322..e084f7e2285b 100644
--- a/pkgs/tools/graphics/vulkan-tools/default.nix
+++ b/pkgs/tools/graphics/vulkan-tools/default.nix
@@ -60,17 +60,6 @@ stdenv.mkDerivation rec {
     Cocoa
   ];
 
-  postPatch = lib.optionalString stdenv.isDarwin ''
-    # Modify mac_common.cmake to find the ICD where nixpkgs puts it.
-    substituteInPlace mac_common.cmake \
-      --replace MoltenVK/icd/MoltenVK_icd.json MoltenVK_icd.json
-    # Remove the unconditional check for `ibtool` since the cube demo that needs it won’t be built.
-    sed -e '/#.*Interface Builder/,/^endif()/d' -i mac_common.cmake
-    # Install `vulkaninfo` to $out/bin even on Darwin.
-    substituteInPlace vulkaninfo/CMakeLists.txt \
-      --replace 'install(TARGETS vulkaninfo RUNTIME DESTINATION "vulkaninfo")' 'install(TARGETS vulkaninfo)'
-  '';
-
   libraryPath = lib.strings.makeLibraryPath [ vulkan-loader ];
 
   dontPatchELF = true;