mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
Merge pull request #285854 from seanybaggins/add-mingw32-support-dav1d
Add mingw32 support dav1d
This commit is contained in:
commit
863faaacc3
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user