lol
at 24.05-pre 30 lines 824 B view raw
1{ lib, stdenv, pkg-config, darwin, fetchurl, SDL2 }: 2 3stdenv.mkDerivation rec { 4 pname = "SDL2_net"; 5 version = "2.2.0"; 6 7 src = fetchurl { 8 url = "https://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-TkqJGYgxYnGXT/TpWF7R73KaEj0iwIvUcxKRedyFf+s="; 10 }; 11 12 outputs = [ "out" "dev" ]; 13 14 nativeBuildInputs = [ pkg-config ]; 15 16 buildInputs = lib.optional stdenv.isDarwin darwin.libobjc; 17 18 configureFlags = [ "--disable-examples" ] 19 ++ lib.optional stdenv.isDarwin "--disable-sdltest"; 20 21 propagatedBuildInputs = [ SDL2 ]; 22 23 meta = with lib; { 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; 29 }; 30}