SDL2: point alias to sdl2-compat (#393386)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
qt6,
|
||||
pkg-config,
|
||||
vulkan-headers,
|
||||
SDL2,
|
||||
SDL2_classic,
|
||||
SDL2_ttf,
|
||||
ffmpeg,
|
||||
libopus,
|
||||
@@ -51,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
buildInputs =
|
||||
[
|
||||
(SDL2.override { drmSupport = stdenv.hostPlatform.isLinux; })
|
||||
(SDL2_classic.override { drmSupport = stdenv.hostPlatform.isLinux; })
|
||||
SDL2_ttf
|
||||
ffmpeg
|
||||
libopus
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
darwin,
|
||||
eigen,
|
||||
libepoxy,
|
||||
libGL,
|
||||
libX11,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -36,6 +38,8 @@ stdenv.mkDerivation rec {
|
||||
SDL2
|
||||
fftw
|
||||
gtest
|
||||
libGL
|
||||
libX11
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
darwin.apple_sdk.frameworks.OpenGL
|
||||
|
||||
@@ -102,7 +102,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
homepage = "https://libsdl.org";
|
||||
changelog = "https://github.com/libsdl-org/sdl2-compat/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.zlib;
|
||||
maintainers = with lib.maintainers; [ nadiaholmquist ];
|
||||
maintainers = with lib.maintainers; [
|
||||
nadiaholmquist
|
||||
grimmauld
|
||||
marcin-serwin
|
||||
];
|
||||
platforms = lib.platforms.all;
|
||||
pkgConfigModules = [ "sdl2_compat" ];
|
||||
};
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
jsoncpp,
|
||||
lib,
|
||||
libpng,
|
||||
libX11,
|
||||
lua,
|
||||
luajit,
|
||||
meson,
|
||||
@@ -42,6 +43,7 @@ stdenv.mkDerivation rec {
|
||||
fftwFloat
|
||||
jsoncpp
|
||||
libpng
|
||||
libX11
|
||||
lua
|
||||
luajit
|
||||
SDL2
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
SDL2,
|
||||
SDL2_classic,
|
||||
SDL2_image,
|
||||
rtaudio,
|
||||
rtmidi,
|
||||
@@ -16,7 +16,7 @@
|
||||
}:
|
||||
let
|
||||
# package depends on SDL2main static library
|
||||
SDL2' = SDL2.override {
|
||||
SDL2' = SDL2_classic.override {
|
||||
withStatic = true;
|
||||
};
|
||||
in
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
pkg-config,
|
||||
gettext,
|
||||
libsodium,
|
||||
SDL2,
|
||||
SDL2_classic,
|
||||
SDL2_image,
|
||||
SDL_audiolib,
|
||||
flac,
|
||||
@@ -99,7 +99,7 @@ stdenv.mkDerivation rec {
|
||||
fmt
|
||||
libpng
|
||||
libsodium
|
||||
SDL2
|
||||
SDL2_classic
|
||||
SDL2_image
|
||||
SDL_audiolib'
|
||||
];
|
||||
|
||||
@@ -10179,8 +10179,9 @@ with pkgs;
|
||||
};
|
||||
|
||||
SDL = SDL_compat;
|
||||
SDL2 = sdl2-compat;
|
||||
|
||||
SDL2 = callPackage ../development/libraries/SDL2 {
|
||||
SDL2_classic = callPackage ../by-name/sd/SDL2_classic/package.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL;
|
||||
};
|
||||
|
||||
@@ -15756,7 +15757,7 @@ with pkgs;
|
||||
|
||||
devilutionx = callPackage ../games/devilutionx {
|
||||
fmt = fmt_9;
|
||||
SDL2 = SDL2.override {
|
||||
SDL2_classic = SDL2_classic.override {
|
||||
withStatic = true;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user