Merge pull request #230305 from trofi/realesrgan-ncnn-vulkan-no-libgcc

realesrgan-ncnn-vulkan: drop redundant libgcc dependency
This commit is contained in:
Weijia Wang 2023-05-06 22:54:40 +03:00 committed by GitHub
commit 2137dec765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,6 @@
, vulkan-headers
, vulkan-loader
, glslang
, libgcc
, libwebp
, ncnn
}:
@ -44,8 +43,7 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [ cmake ];
buildInputs = [ vulkan-headers vulkan-loader glslang libwebp ncnn ]
++ lib.optional (!stdenv.isDarwin) libgcc;
buildInputs = [ vulkan-headers vulkan-loader glslang libwebp ncnn ];
postPatch = ''
substituteInPlace main.cpp --replace REPLACE_MODELS $out/share/models
@ -62,5 +60,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan";
license = licenses.mit;
maintainers = with maintainers; [ tilcreator ];
platforms = platforms.all;
};
}