2018-01-20 16:26:21 +01:00
|
|
|
{ stdenv, darwin, fetchurl, SDL2 }:
|
2014-08-03 19:49:32 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-08-22 05:24:32 +02:00
|
|
|
name = "SDL2_net-${version}";
|
|
|
|
version = "2.0.1";
|
2014-08-03 19:49:32 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://www.libsdl.org/projects/SDL_net/release/${name}.tar.gz";
|
2016-08-22 05:24:32 +02:00
|
|
|
sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm";
|
2014-08-03 19:49:32 +02:00
|
|
|
};
|
|
|
|
|
2018-01-20 22:57:44 +01:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
|
2018-01-20 16:26:21 +01:00
|
|
|
|
2018-06-07 01:18:00 +02:00
|
|
|
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
|
|
|
|
|
2016-08-22 05:24:32 +02:00
|
|
|
propagatedBuildInputs = [ SDL2 ];
|
2014-08-03 19:49:32 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SDL multiplatform networking library";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://www.libsdl.org/projects/SDL_net;
|
2014-08-03 19:49:32 +02:00
|
|
|
license = licenses.zlib;
|
2016-08-22 05:24:32 +02:00
|
|
|
maintainers = with maintainers; [ MP2E ];
|
2018-01-20 16:26:21 +01:00
|
|
|
platforms = platforms.unix;
|
2014-08-03 19:49:32 +02:00
|
|
|
};
|
|
|
|
}
|