mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
Merge pull request #6232 from maun/sdl2
Modified SDL2 derivation to work on Mac OSX darwin
This commit is contained in:
commit
f864b95dca
@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
# OSS is no longer supported, for it's much crappier than ALSA and
|
# OSS is no longer supported, for it's much crappier than ALSA and
|
||||||
# PulseAudio.
|
# PulseAudio.
|
||||||
assert alsaSupport || pulseaudioSupport;
|
assert !stdenv.isDarwin -> alsaSupport || pulseaudioSupport;
|
||||||
|
|
||||||
assert openglSupport -> (mesa != null && x11Support);
|
assert openglSupport -> (stdenv.isDarwin || mesa != null && x11Support);
|
||||||
assert x11Support -> (x11 != null && libXrandr != null);
|
assert x11Support -> (x11 != null && libXrandr != null);
|
||||||
assert alsaSupport -> alsaLib != null;
|
assert alsaSupport -> alsaLib != null;
|
||||||
assert pulseaudioSupport -> pulseaudio != null;
|
assert pulseaudioSupport -> pulseaudio != null;
|
||||||
@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "A cross-platform multimedia library";
|
description = "A cross-platform multimedia library";
|
||||||
homepage = http://www.libsdl.org/;
|
homepage = http://www.libsdl.org/;
|
||||||
license = stdenv.lib.licenses.zlib;
|
license = stdenv.lib.licenses.zlib;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.all;
|
||||||
maintainers = [ stdenv.lib.maintainers.page ];
|
maintainers = [ stdenv.lib.maintainers.page ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -7146,8 +7146,8 @@ let
|
|||||||
|
|
||||||
SDL2 = callPackage ../development/libraries/SDL2 {
|
SDL2 = callPackage ../development/libraries/SDL2 {
|
||||||
openglSupport = mesaSupported;
|
openglSupport = mesaSupported;
|
||||||
alsaSupport = true;
|
alsaSupport = (!stdenv.isDarwin);
|
||||||
x11Support = true;
|
x11Support = (!stdenv.isDarwin);
|
||||||
pulseaudioSupport = false; # better go through ALSA
|
pulseaudioSupport = false; # better go through ALSA
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user