2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, pkg-config, darwin, fetchurl, SDL2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "SDL2_net";
|
|
|
|
version = "2.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm";
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin darwin.libobjc;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ SDL2 ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SDL multiplatform networking library";
|
|
|
|
homepage = "https://www.libsdl.org/projects/SDL_net";
|
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ MP2E ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|