mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
moltenvk: provide MoltenVK-specific headers
These are needed to compile `vulkaninfo` in the Vulkan-Tools package.
This commit is contained in:
parent
af99bbf451
commit
71ceba177f
1 changed files with 3 additions and 2 deletions
|
@ -38,7 +38,7 @@ stdenvNoCC.mkDerivation rec {
|
|||
QuartzCore
|
||||
];
|
||||
|
||||
outputs = [ "out" "bin" ];
|
||||
outputs = [ "out" "bin" "dev" ];
|
||||
|
||||
# MoltenVK requires specific versions of its dependencies.
|
||||
# Pin them here except for cereal, which is four years old and has several CVEs.
|
||||
|
@ -170,9 +170,10 @@ stdenvNoCC.mkDerivation rec {
|
|||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/lib" "$out/share/vulkan/icd.d" "$bin/bin"
|
||||
mkdir -p "$out/lib" "$out/share/vulkan/icd.d" "$bin/bin" "$dev/include/MoltenVK"
|
||||
cp outputs/bin/MoltenVKShaderConverter "$bin/bin/"
|
||||
cp outputs/lib/libMoltenVK.dylib "$out/lib/"
|
||||
cp MoltenVK/MoltenVK/API/* "$dev/include/MoltenVK"
|
||||
${cctools}/bin/install_name_tool -id "$out/lib/libMoltenVK.dylib" "$out/lib/libMoltenVK.dylib"
|
||||
# FIXME: https://github.com/NixOS/nixpkgs/issues/148189
|
||||
/usr/bin/codesign -s - -f "$out/lib/libMoltenVK.dylib"
|
||||
|
|
Loading…
Reference in a new issue