1 { lib, stdenv, darwin, fetchurl, SDL2 }:
3 stdenv.mkDerivation rec {
8 url = "https://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz";
9 sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm";
12 buildInputs = lib.optional stdenv.isDarwin darwin.libobjc;
14 configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
16 propagatedBuildInputs = [ SDL2 ];
19 description = "SDL multiplatform networking library";
20 homepage = "https://www.libsdl.org/projects/SDL_net";
21 license = licenses.zlib;
22 maintainers = with maintainers; [ MP2E ];
23 platforms = platforms.unix;