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

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";
  };

  configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";

  nativeBuildInputs = [ pkg-config ];
  propagatedBuildInputs = [ SDL ];

  meta = with lib; {
    description = "SDL networking library";
    platforms = platforms.unix;
    license = licenses.zlib;
    homepage = "https://www.libsdl.org/projects/SDL_net/release-1.2.html";
  };
}