mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
SDL2_image: support darwin
This commit is contained in:
parent
6c8763e0ca
commit
4a8caddb6e
2 changed files with 9 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, SDL2, libpng, libjpeg, libtiff, libungif, libXpm, zlib }:
|
||||
{ stdenv, fetchurl, SDL2, libpng, libjpeg, libtiff, libungif, libXpm, zlib, Foundation }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "SDL2_image-${version}";
|
||||
|
@ -9,12 +9,15 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1s3ciydixrgv34vlf45ak5syq5nlfaqf19wf162lbz4ixxd0gpvj";
|
||||
};
|
||||
|
||||
buildInputs = [ SDL2 libpng libjpeg libtiff libungif libXpm zlib ];
|
||||
buildInputs = [ SDL2 libpng libjpeg libtiff libungif libXpm zlib ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin Foundation;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "SDL image library";
|
||||
homepage = http://www.libsdl.org/projects/SDL_image/;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
license = licenses.zlib;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10669,7 +10669,9 @@ with pkgs;
|
|||
inherit (darwin.apple_sdk.frameworks) AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL;
|
||||
};
|
||||
|
||||
SDL2_image = callPackage ../development/libraries/SDL2_image { };
|
||||
SDL2_image = callPackage ../development/libraries/SDL2_image {
|
||||
inherit (darwin.apple_sdk.frameworks) Foundation;
|
||||
};
|
||||
|
||||
SDL2_mixer = callPackage ../development/libraries/SDL2_mixer { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue