x265: add mingw support

Part of a larger effort to add mingw support for qtmultimedia
This commit is contained in:
Sean Link
2024-02-09 09:55:44 -07:00
parent 8b06cac5f8
commit 2a98f1c84e
@@ -72,6 +72,12 @@ stdenv.mkDerivation rec {
substituteInPlace cmake/Version.cmake \
--replace "unknown" "${version}" \
--replace "0.0" "${version}"
''
# There is broken and complicated logic when setting X265_LATEST_TAG for
# mingwW64 builds. This bypasses the logic by setting it at the end of the
# file
+ lib.optionalString stdenv.hostPlatform.isMinGW ''
echo 'set(X265_LATEST_TAG "${version}")' >> ./cmake/Version.cmake
'';
nativeBuildInputs = [ cmake nasm ] ++ lib.optionals (numaSupport) [ numactl ];