2010-07-28 11:55:54 +00:00
|
|
|
{ stdenv, fetchurl, SDL }:
|
2009-03-03 13:27:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2008-02-06 21:17:42 +00:00
|
|
|
pname = "SDL_net";
|
2013-12-18 11:27:17 +00:00
|
|
|
version = "1.2.8";
|
2008-02-06 21:17:42 +00:00
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.libsdl.org/projects/SDL_net/release/${name}.tar.gz";
|
2013-12-18 11:27:17 +00:00
|
|
|
sha256 = "1d5c9xqlf4s1c01gzv6cxmg0r621pq9kfgxcg3197xw4p25pljjz";
|
2008-02-06 21:17:42 +00:00
|
|
|
};
|
|
|
|
|
2011-09-19 05:16:49 +00:00
|
|
|
propagatedBuildInputs = [SDL];
|
2008-02-06 21:17:42 +00:00
|
|
|
|
2012-07-02 14:17:44 +00:00
|
|
|
postInstall = ''
|
|
|
|
sed -i -e 's,"SDL.h",<SDL/SDL.h>,' \
|
|
|
|
-e 's,"SDL_endian.h",<SDL/SDL_endian.h>,' \
|
|
|
|
-e 's,"SDL_version.h",<SDL/SDL_version.h>,' \
|
|
|
|
-e 's,"begin_code.h",<SDL/begin_code.h>,' \
|
|
|
|
-e 's,"close_code.h",<SDL/close_code.h>,' \
|
|
|
|
$out/include/SDL/SDL_net.h
|
|
|
|
|
|
|
|
ln -sv $out/include/SDL/SDL_net.h $out/include/
|
|
|
|
'';
|
2008-02-06 21:17:42 +00:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "SDL networking library";
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-02-06 21:17:42 +00:00
|
|
|
};
|
2009-03-03 13:27:40 +00:00
|
|
|
}
|