diff options
author | Daniel Peebles <copumpkin@users.noreply.github.com> | 2015-05-08 01:16:39 -0400 |
---|---|---|
committer | Daniel Peebles <copumpkin@users.noreply.github.com> | 2015-05-08 01:16:39 -0400 |
commit | b1a217ec55da82f354774cde99508c4be9f4d3a6 (patch) | |
tree | 275fd971cbb12a449f1ce47bfd4b3d96f9023a5c /pkgs | |
parent | 61be2ceb27971cb939c1defaab0ea4cb2c654868 (diff) | |
parent | b37d5864d61b4b7fec38d77a4f929a3001298a30 (diff) | |
download | nixlib-b1a217ec55da82f354774cde99508c4be9f4d3a6.tar nixlib-b1a217ec55da82f354774cde99508c4be9f4d3a6.tar.gz nixlib-b1a217ec55da82f354774cde99508c4be9f4d3a6.tar.bz2 nixlib-b1a217ec55da82f354774cde99508c4be9f4d3a6.tar.lz nixlib-b1a217ec55da82f354774cde99508c4be9f4d3a6.tar.xz nixlib-b1a217ec55da82f354774cde99508c4be9f4d3a6.tar.zst nixlib-b1a217ec55da82f354774cde99508c4be9f4d3a6.zip |
Merge pull request #7637 from spwhitt/sdl
SDL*: Fix on Darwin
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/SDL/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/libraries/SDL2/default.nix | 1 | ||||
-rw-r--r-- | pkgs/development/libraries/SDL2_gfx/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/libraries/SDL2_image/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/libraries/SDL_gfx/default.nix | 2 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
6 files changed, 5 insertions, 9 deletions
diff --git a/pkgs/development/libraries/SDL/default.nix b/pkgs/development/libraries/SDL/default.nix index 1e32a5985060..f23955228f75 100644 --- a/pkgs/development/libraries/SDL/default.nix +++ b/pkgs/development/libraries/SDL/default.nix @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { buildInputs = let notMingw = !(stdenv ? cross) || stdenv.cross.libc != "msvcrt"; - in [ libcap ] + in stdenv.lib.optional stdenv.isLinux libcap ++ (stdenv.lib.optional notMingw audiofile); nativeBuildInputs = [ pkgconfig ] ++ diff --git a/pkgs/development/libraries/SDL2/default.nix b/pkgs/development/libraries/SDL2/default.nix index 68f40cad2598..ade6bc620e4f 100644 --- a/pkgs/development/libraries/SDL2/default.nix +++ b/pkgs/development/libraries/SDL2/default.nix @@ -19,6 +19,7 @@ let --disable-oss --disable-x11-shared --disable-pulseaudio-shared --disable-alsa-shared ${if alsaSupport then "--with-alsa-prefix=${attrs.alsaLib}/lib" else ""} + ${if (!x11Support) then "--without-x" else ""} ''; in stdenv.mkDerivation rec { diff --git a/pkgs/development/libraries/SDL2_gfx/default.nix b/pkgs/development/libraries/SDL2_gfx/default.nix index bc4b1a778fc2..66913fc01597 100644 --- a/pkgs/development/libraries/SDL2_gfx/default.nix +++ b/pkgs/development/libraries/SDL2_gfx/default.nix @@ -49,6 +49,6 @@ stdenv.mkDerivation rec { license = stdenv.lib.licenses.lgpl2Plus; maintainers = [ stdenv.lib.maintainers.bjg ]; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; }; } diff --git a/pkgs/development/libraries/SDL2_image/default.nix b/pkgs/development/libraries/SDL2_image/default.nix index 73b5ba8d929a..55b465226d8d 100644 --- a/pkgs/development/libraries/SDL2_image/default.nix +++ b/pkgs/development/libraries/SDL2_image/default.nix @@ -22,6 +22,6 @@ stdenv.mkDerivation rec { meta = { description = "SDL image library"; homepage = "http://www.libsdl.org/projects/SDL_image/"; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; }; } diff --git a/pkgs/development/libraries/SDL_gfx/default.nix b/pkgs/development/libraries/SDL_gfx/default.nix index 3a7fa7072849..7bff348b7543 100644 --- a/pkgs/development/libraries/SDL_gfx/default.nix +++ b/pkgs/development/libraries/SDL_gfx/default.nix @@ -44,6 +44,6 @@ stdenv.mkDerivation rec { license = stdenv.lib.licenses.lgpl2Plus; maintainers = [ stdenv.lib.maintainers.bjg ]; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6cf11f0d8444..ede2276a60ea 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7579,11 +7579,6 @@ let alsaSupport = (!stdenv.isDarwin); x11Support = true; pulseaudioSupport = (!stdenv.isDarwin); - - # resolve the unrecognized -fpascal-strings option error - stdenv = if stdenv.isDarwin - then clangStdenv - else stdenv; }; SDL_gfx = callPackage ../development/libraries/SDL_gfx { }; |