From 7ed91d089c96c57006bcc088bcd285dbcdaf5e3d Mon Sep 17 00:00:00 2001 From: Sean Link Date: Fri, 16 Feb 2024 14:54:25 -0700 Subject: [PATCH] x265: mingw support bugfix part of a larger effort to add mingw support for qtmultimedia cross compiling ffmpeg fails without this change --- pkgs/development/libraries/x265/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/x265/default.nix b/pkgs/development/libraries/x265/default.nix index 0ce635a80fb7..1fc5f3129c0e 100644 --- a/pkgs/development/libraries/x265/default.nix +++ b/pkgs/development/libraries/x265/default.nix @@ -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; {