2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, SDL }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "SDL_net";
|
|
|
|
version = "1.2.8";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1d5c9xqlf4s1c01gzv6cxmg0r621pq9kfgxcg3197xw4p25pljjz";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ SDL ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SDL networking library";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.zlib;
|
|
|
|
homepage = "https://www.libsdl.org/projects/SDL_net/release-1.2.html";
|
|
|
|
};
|
|
|
|
}
|