mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
23 lines
616 B
Nix
23 lines
616 B
Nix
{ stdenv, fetchurl, SDL2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "SDL2_net-2.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.libsdl.org/projects/SDL_net/release/${name}.tar.gz";
|
|
sha256 = "d715be30783cc99e541626da52079e308060b21d4f7b95f0224b1d06c1faacab";
|
|
};
|
|
|
|
propagatedBuildInputs = [SDL2];
|
|
|
|
postInstall = "ln -s $out/include/SDL2/SDL_net.h $out/include/";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "SDL multiplatform networking library";
|
|
homepage = https://www.libsdl.org/projects/SDL_net;
|
|
license = licenses.zlib;
|
|
maintainers = [ maintainers.MP2E ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|