2021-11-01 09:54:39 +00:00
|
|
|
{ lib, stdenv, pkg-config, darwin, fetchurl, SDL2 }:
|
2014-08-03 17:49:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "SDL2_net";
|
2022-12-24 13:50:43 +00:00
|
|
|
version = "2.2.0";
|
2014-08-03 17:49:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz";
|
2022-12-24 13:50:43 +00:00
|
|
|
sha256 = "sha256-TkqJGYgxYnGXT/TpWF7R73KaEj0iwIvUcxKRedyFf+s=";
|
2014-08-03 17:49:32 +00:00
|
|
|
};
|
|
|
|
|
2023-04-15 17:34:06 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-11-01 09:54:39 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin darwin.libobjc;
|
2018-01-20 15:26:21 +00:00
|
|
|
|
2022-12-24 13:50:43 +00:00
|
|
|
configureFlags = [ "--disable-examples" ]
|
|
|
|
++ lib.optional stdenv.isDarwin "--disable-sdltest";
|
2018-06-06 23:18:00 +00:00
|
|
|
|
2016-08-22 03:24:32 +00:00
|
|
|
propagatedBuildInputs = [ SDL2 ];
|
2014-08-03 17:49:32 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-08-03 17:49:32 +00:00
|
|
|
description = "SDL multiplatform networking library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.libsdl.org/projects/SDL_net";
|
2014-08-03 17:49:32 +00:00
|
|
|
license = licenses.zlib;
|
2016-08-22 03:24:32 +00:00
|
|
|
maintainers = with maintainers; [ MP2E ];
|
2018-01-20 15:26:21 +00:00
|
|
|
platforms = platforms.unix;
|
2014-08-03 17:49:32 +00:00
|
|
|
};
|
|
|
|
}
|