Merge pull request #285854 from seanybaggins/add-mingw32-support-dav1d

Add mingw32 support dav1d
This commit is contained in:
Artturi 2024-02-04 17:37:13 +02:00 committed by GitHub
commit 863faaacc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,11 +1,20 @@
{ lib, stdenv, fetchFromGitHub
, meson, ninja, nasm, pkg-config
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, nasm
, pkg-config
, xxHash
, withTools ? false # "dav1d" binary
, withExamples ? false, SDL2 # "dav1dplay" binary
, useVulkan ? false, libplacebo, vulkan-loader, vulkan-headers
, withExamples ? false
, SDL2 # "dav1dplay" binary
, useVulkan ? false
, libplacebo
, vulkan-loader
, vulkan-headers
# for passthru.tests
# for passthru.tests
, ffmpeg
, gdal
, handbrake
@ -34,7 +43,7 @@ stdenv.mkDerivation rec {
++ lib.optional withExamples SDL2
++ lib.optionals useVulkan [ libplacebo vulkan-loader vulkan-headers ];
mesonFlags= [
mesonFlags = [
"-Denable_tools=${lib.boolToString withTools}"
"-Denable_examples=${lib.boolToString withExamples}"
];
@ -62,7 +71,7 @@ stdenv.mkDerivation rec {
changelog = "https://code.videolan.org/videolan/dav1d/-/tags/${version}";
# More technical: https://code.videolan.org/videolan/dav1d/blob/${version}/NEWS
license = licenses.bsd2;
platforms = platforms.unix;
platforms = platforms.unix ++ platforms.windows;
maintainers = with maintainers; [ primeos ];
};
}