summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL2_net/default.nix
blob: e41546512e94e72bf707dbc2da886715a7348aae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl, SDL2 }:

stdenv.mkDerivation rec {
  name = "SDL2_net-2.0.0";

  src = fetchurl {
    url = "http://www.libsdl.org/projects/SDL_net/release/${name}.tar.gz";
    sha256 = "d715be30783cc99e541626da52079e308060b21d4f7b95f0224b1d06c1faacab";
  };

  propagatedBuildInputs = [SDL2];

  postInstall = "ln -s $out/include/SDL2/SDL_net.h $out/include/";

  meta = with stdenv.lib; {
    description = "SDL multiplatform networking library";
    homepage = https://www.libsdl.org/projects/SDL_net;
    license = licenses.zlib;
    maintainers = [ maintainers.MP2E ];
    platforms = platforms.all;
  };
}