mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
SDL2_image: support darwin
This commit is contained in:
parent
6c8763e0ca
commit
4a8caddb6e
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "SDL2_image-${version}";
|
name = "SDL2_image-${version}";
|
||||||
@ -9,12 +9,15 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1s3ciydixrgv34vlf45ak5syq5nlfaqf19wf162lbz4ixxd0gpvj";
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "SDL image library";
|
description = "SDL image library";
|
||||||
homepage = http://www.libsdl.org/projects/SDL_image/;
|
homepage = http://www.libsdl.org/projects/SDL_image/;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
license = licenses.zlib;
|
license = licenses.zlib;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -10669,7 +10669,9 @@ with pkgs;
|
|||||||
inherit (darwin.apple_sdk.frameworks) AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL;
|
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 { };
|
SDL2_mixer = callPackage ../development/libraries/SDL2_mixer { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user