x265: mingw support bugfix

part of a larger effort to add mingw support for qtmultimedia
cross compiling ffmpeg fails without this change
This commit is contained in:
Sean Link 2024-02-16 14:54:25 -07:00
parent 3891b2df99
commit 7ed91d089c

View file

@ -139,6 +139,10 @@ stdenv.mkDerivation rec {
postInstall = ''
rm -f ${placeholder "out"}/lib/*.a
''
# For mingw, libs are located in $out/bin not $out/lib
+ lib.optionalString stdenv.hostPlatform.isMinGW ''
ln -s $out/bin/*.dll $out/lib
'';
meta = with lib; {