3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #207572 from j0lol/sdl2_net

SDL2_net: 2.0.1 -> 2.2.0
This commit is contained in:
Sergei Trofimovich 2023-04-14 06:23:06 +01:00 committed by GitHub
commit e513872900
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,18 +2,19 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL2_net"; pname = "SDL2_net";
version = "2.0.1"; version = "2.2.0";
src = fetchurl { src = fetchurl {
url = "https://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz"; url = "https://www.libsdl.org/projects/SDL_net/release/${pname}-${version}.tar.gz";
sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm"; sha256 = "sha256-TkqJGYgxYnGXT/TpWF7R73KaEj0iwIvUcxKRedyFf+s=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optional stdenv.isDarwin darwin.libobjc; buildInputs = lib.optional stdenv.isDarwin darwin.libobjc;
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest"; configureFlags = [ "--disable-examples" ]
++ lib.optional stdenv.isDarwin "--disable-sdltest";
propagatedBuildInputs = [ SDL2 ]; propagatedBuildInputs = [ SDL2 ];