Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / SDL2_net / default.nix
blobb07d860cf0c3b08313c12b16d8cec4654897e4bf
1 { lib, stdenv, pkg-config, darwin, fetchurl, SDL2 }:
3 stdenv.mkDerivation rec {
4   pname = "SDL2_net";
5   version = "2.2.0";
7   src = fetchurl {
8     url = "https://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz";
9     sha256 = "sha256-TkqJGYgxYnGXT/TpWF7R73KaEj0iwIvUcxKRedyFf+s=";
10   };
12   outputs = [ "out" "dev" ];
14   nativeBuildInputs = [ pkg-config ];
16   buildInputs = lib.optional stdenv.isDarwin darwin.libobjc;
18   configureFlags = [ "--disable-examples" ]
19   ++ lib.optional stdenv.isDarwin "--disable-sdltest";
21   propagatedBuildInputs = [ SDL2 ];
23   meta = with lib; {
24     description = "SDL multiplatform networking library";
25     homepage = "https://www.libsdl.org/projects/SDL_net";
26     license = licenses.zlib;
27     maintainers = with maintainers; [ MP2E ];
28     platforms = platforms.unix;
29   };