nixpkgs/pkgs/development/libraries/SDL2_net/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

26 lines
726 B
Nix

{ stdenv, darwin, fetchurl, SDL2 }:
stdenv.mkDerivation rec {
name = "SDL2_net-${version}";
version = "2.0.1";
src = fetchurl {
url = "https://www.libsdl.org/projects/SDL_net/release/${name}.tar.gz";
sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm";
};
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
propagatedBuildInputs = [ SDL2 ];
meta = with stdenv.lib; {
description = "SDL multiplatform networking library";
homepage = https://www.libsdl.org/projects/SDL_net;
license = licenses.zlib;
maintainers = with maintainers; [ MP2E ];
platforms = platforms.unix;
};
}