3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/SDL2_net/default.nix

28 lines
765 B
Nix
Raw Normal View History

2021-11-01 09:54:39 +00:00
{ lib, stdenv, pkg-config, darwin, fetchurl, SDL2 }:
2014-08-03 18:49:32 +01:00
stdenv.mkDerivation rec {
pname = "SDL2_net";
version = "2.0.1";
2014-08-03 18:49:32 +01:00
src = fetchurl {
url = "https://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz";
sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm";
2014-08-03 18:49:32 +01:00
};
2021-11-01 09:54:39 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optional stdenv.isDarwin darwin.libobjc;
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
propagatedBuildInputs = [ SDL2 ];
2014-08-03 18:49:32 +01:00
meta = with lib; {
2014-08-03 18:49:32 +01:00
description = "SDL multiplatform networking library";
homepage = "https://www.libsdl.org/projects/SDL_net";
2014-08-03 18:49:32 +01:00
license = licenses.zlib;
maintainers = with maintainers; [ MP2E ];
platforms = platforms.unix;
2014-08-03 18:49:32 +01:00
};
}