Merge pull request #287318 from seanybaggins/add-mingw-support-x265

Add mingw support x265

authored by Weijia Wang and committed by GitHub 82b583ba b2b2c220

+13 -7
+13 -7
pkgs/development/libraries/x265/default.nix
··· 5 , cmake 6 , nasm 7 8 - # NUMA support enabled by default on NUMA platforms: 9 , numaSupport ? (stdenv.hostPlatform.isLinux && (stdenv.hostPlatform.isx86 || stdenv.hostPlatform.isAarch64)) 10 , numactl 11 12 - # Multi bit-depth support (8bit+10bit+12bit): 13 , multibitdepthSupport ? (stdenv.is64bit && !(stdenv.isAarch64 && stdenv.isLinux)) 14 15 - # Other options: 16 , cliSupport ? true # Build standalone CLI application 17 , custatsSupport ? false # Internal profiling of encoder work 18 , debugSupport ? false # Run-time sanity checks (debugging) ··· 72 substituteInPlace cmake/Version.cmake \ 73 --replace "unknown" "${version}" \ 74 --replace "0.0" "${version}" 75 ''; 76 77 nativeBuildInputs = [ cmake nasm ] ++ lib.optionals (numaSupport) [ numactl ]; ··· 137 138 meta = with lib; { 139 description = "Library for encoding H.265/HEVC video streams"; 140 - homepage = "https://www.x265.org/"; 141 - changelog = "https://x265.readthedocs.io/en/master/releasenotes.html#version-${lib.strings.replaceStrings ["."] ["-"] version}"; 142 - license = licenses.gpl2Plus; 143 maintainers = with maintainers; [ codyopel ]; 144 - platforms = platforms.all; 145 }; 146 }
··· 5 , cmake 6 , nasm 7 8 + # NUMA support enabled by default on NUMA platforms: 9 , numaSupport ? (stdenv.hostPlatform.isLinux && (stdenv.hostPlatform.isx86 || stdenv.hostPlatform.isAarch64)) 10 , numactl 11 12 + # Multi bit-depth support (8bit+10bit+12bit): 13 , multibitdepthSupport ? (stdenv.is64bit && !(stdenv.isAarch64 && stdenv.isLinux)) 14 15 + # Other options: 16 , cliSupport ? true # Build standalone CLI application 17 , custatsSupport ? false # Internal profiling of encoder work 18 , debugSupport ? false # Run-time sanity checks (debugging) ··· 72 substituteInPlace cmake/Version.cmake \ 73 --replace "unknown" "${version}" \ 74 --replace "0.0" "${version}" 75 + '' 76 + # There is broken and complicated logic when setting X265_LATEST_TAG for 77 + # mingwW64 builds. This bypasses the logic by setting it at the end of the 78 + # file 79 + + lib.optionalString stdenv.hostPlatform.isMinGW '' 80 + echo 'set(X265_LATEST_TAG "${version}")' >> ./cmake/Version.cmake 81 ''; 82 83 nativeBuildInputs = [ cmake nasm ] ++ lib.optionals (numaSupport) [ numactl ]; ··· 143 144 meta = with lib; { 145 description = "Library for encoding H.265/HEVC video streams"; 146 + homepage = "https://www.x265.org/"; 147 + changelog = "https://x265.readthedocs.io/en/master/releasenotes.html#version-${lib.strings.replaceStrings ["."] ["-"] version}"; 148 + license = licenses.gpl2Plus; 149 maintainers = with maintainers; [ codyopel ]; 150 + platforms = platforms.all; 151 }; 152 }