Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / SDL_net / default.nix
blobe902213c9710f412a77a6836774a1b6ab3668156
1 { lib, stdenv, fetchurl, SDL, pkg-config }:
3 stdenv.mkDerivation rec {
4   pname = "SDL_net";
5   version = "1.2.8";
7   src = fetchurl {
8     url = "http://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz";
9     sha256 = "1d5c9xqlf4s1c01gzv6cxmg0r621pq9kfgxcg3197xw4p25pljjz";
10   };
12   configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
14   nativeBuildInputs = [ pkg-config ];
15   propagatedBuildInputs = [ SDL ];
17   meta = with lib; {
18     description = "SDL networking library";
19     platforms = platforms.unix;
20     license = licenses.zlib;
21     homepage = "https://www.libsdl.org/projects/SDL_net/release-1.2.html";
22   };