SDL2: cleanup and add patch to discover extensions

This commit is contained in:
Nikolay Amiantov
2016-08-22 06:30:01 +03:00
parent b47327ebd5
commit 7bf7f19765
8 changed files with 108 additions and 67 deletions
@@ -1,22 +1,21 @@
{ stdenv, fetchurl, SDL2 }:
stdenv.mkDerivation rec {
name = "SDL2_net-2.0.0";
name = "SDL2_net-${version}";
version = "2.0.1";
src = fetchurl {
url = "http://www.libsdl.org/projects/SDL_net/release/${name}.tar.gz";
sha256 = "d715be30783cc99e541626da52079e308060b21d4f7b95f0224b1d06c1faacab";
sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm";
};
propagatedBuildInputs = [SDL2];
postInstall = "ln -s $out/include/SDL2/SDL_net.h $out/include/";
propagatedBuildInputs = [ SDL2 ];
meta = with stdenv.lib; {
description = "SDL multiplatform networking library";
homepage = https://www.libsdl.org/projects/SDL_net;
homepage = "https://www.libsdl.org/projects/SDL_net";
license = licenses.zlib;
maintainers = [ maintainers.MP2E ];
maintainers = with maintainers; [ MP2E ];
platforms = platforms.linux;
};
}