realesrgan-ncnn-vulkan: drop redundant libgcc dependency
`libgcc` should normally be provided by `gcc` `stdenv` directly. Checked with `diffoscope` that final output did not change. While at it added all platforms to supported list.
This commit is contained in:
parent
8607b0587c
commit
dd6726df6c
|
@ -7,7 +7,6 @@
|
||||||
, vulkan-headers
|
, vulkan-headers
|
||||||
, vulkan-loader
|
, vulkan-loader
|
||||||
, glslang
|
, glslang
|
||||||
, libgcc
|
|
||||||
, libwebp
|
, libwebp
|
||||||
, ncnn
|
, ncnn
|
||||||
}:
|
}:
|
||||||
|
@ -44,8 +43,7 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ vulkan-headers vulkan-loader glslang libwebp ncnn ]
|
buildInputs = [ vulkan-headers vulkan-loader glslang libwebp ncnn ];
|
||||||
++ lib.optional (!stdenv.isDarwin) libgcc;
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace main.cpp --replace REPLACE_MODELS $out/share/models
|
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";
|
homepage = "https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ tilcreator ];
|
maintainers = with maintainers; [ tilcreator ];
|
||||||
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue