1 { lib, stdenv, pkg-config, darwin, fetchurl, SDL2 }:
3 stdenv.mkDerivation rec {
8 url = "https://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz";
9 sha256 = "sha256-TkqJGYgxYnGXT/TpWF7R73KaEj0iwIvUcxKRedyFf+s=";
12 outputs = [ "out" "dev" ];
14 nativeBuildInputs = [ pkg-config ];
16 buildInputs = lib.optional stdenv.isDarwin darwin.libobjc;
18 configureFlags = [ "--disable-examples" ]
19 ++ lib.optional stdenv.isDarwin "--disable-sdltest";
21 propagatedBuildInputs = [ SDL2 ];
24 description = "SDL multiplatform networking library";
25 homepage = "https://www.libsdl.org/projects/SDL_net";
26 license = licenses.zlib;
27 maintainers = with maintainers; [ MP2E ];
28 platforms = platforms.unix;