2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, darwin, fetchurl, SDL2 }:
|
2014-08-03 18:49:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "SDL2_net";
|
2016-08-22 04:24:32 +01:00
|
|
|
version = "2.0.1";
|
2014-08-03 18:49:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz";
|
2016-08-22 04:24:32 +01:00
|
|
|
sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm";
|
2014-08-03 18:49:32 +01:00
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin darwin.libobjc;
|
2018-01-20 15:26:21 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
|
2018-06-07 00:18:00 +01:00
|
|
|
|
2016-08-22 04:24:32 +01:00
|
|
|
propagatedBuildInputs = [ SDL2 ];
|
2014-08-03 18:49:32 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-08-03 18:49:32 +01:00
|
|
|
description = "SDL multiplatform networking library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.libsdl.org/projects/SDL_net";
|
2014-08-03 18:49:32 +01:00
|
|
|
license = licenses.zlib;
|
2016-08-22 04:24:32 +01:00
|
|
|
maintainers = with maintainers; [ MP2E ];
|
2018-01-20 15:26:21 +00:00
|
|
|
platforms = platforms.unix;
|
2014-08-03 18:49:32 +01:00
|
|
|
};
|
|
|
|
}
|