realesrgan-ncnn-vulkan: fix build on aarch64-darwin

This commit is contained in:
Randy Eckenrode 2022-07-10 10:07:02 -04:00
parent a88ca05577
commit 249e904af0
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -44,7 +44,8 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [ cmake ];
buildInputs = [ vulkan-headers vulkan-loader glslang libgcc libwebp ncnn ];
buildInputs = [ vulkan-headers vulkan-loader glslang libwebp ncnn ]
++ lib.optional (!stdenv.isDarwin) libgcc;
postPatch = ''
substituteInPlace main.cpp --replace REPLACE_MODELS $out/share/models