summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL2_net
diff options
context:
space:
mode:
authorMitsuhiro Nakamura <m.nacamura@gmail.com>2018-01-21 00:26:21 +0900
committerMitsuhiro Nakamura <m.nacamura@gmail.com>2018-01-21 00:26:21 +0900
commit4014b24ca167a087384b0ccbed88df4538dcc577 (patch)
treef1dcf5d9882647cbb702c5fc1229f63bbf575e7d /pkgs/development/libraries/SDL2_net
parenta97eaae95088936df4e9029b368a1ce63f07234b (diff)
downloadnixpkgs-4014b24ca167a087384b0ccbed88df4538dcc577.tar
nixpkgs-4014b24ca167a087384b0ccbed88df4538dcc577.tar.gz
nixpkgs-4014b24ca167a087384b0ccbed88df4538dcc577.tar.bz2
nixpkgs-4014b24ca167a087384b0ccbed88df4538dcc577.tar.lz
nixpkgs-4014b24ca167a087384b0ccbed88df4538dcc577.tar.xz
nixpkgs-4014b24ca167a087384b0ccbed88df4538dcc577.tar.zst
nixpkgs-4014b24ca167a087384b0ccbed88df4538dcc577.zip
SDL2_{gfx,mixer,net,ttf}: fix Darwin build
Diffstat (limited to 'pkgs/development/libraries/SDL2_net')
-rw-r--r--pkgs/development/libraries/SDL2_net/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/SDL2_net/default.nix b/pkgs/development/libraries/SDL2_net/default.nix
index cf81fc0cac8..ad6232406b0 100644
--- a/pkgs/development/libraries/SDL2_net/default.nix
+++ b/pkgs/development/libraries/SDL2_net/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, SDL2 }:
+{ stdenv, darwin, fetchurl, SDL2 }:
 
 stdenv.mkDerivation rec {
   name = "SDL2_net-${version}";
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
     sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm";
   };
 
+  nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
+
   propagatedBuildInputs = [ SDL2 ];
 
   meta = with stdenv.lib; {
@@ -16,6 +18,6 @@ stdenv.mkDerivation rec {
     homepage = https://www.libsdl.org/projects/SDL_net;
     license = licenses.zlib;
     maintainers = with maintainers; [ MP2E ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }