2016-03-29 11:23:12 +01:00
|
|
|
{stdenv, fetchurl, SDL, mesa, rebar, erlang}:
|
2010-07-01 10:08:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-03-29 11:23:12 +01:00
|
|
|
name = "esdl-1.3.1";
|
2010-07-01 10:08:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-03-29 11:23:12 +01:00
|
|
|
url = "mirror://sourceforge/esdl/${name}.src.tgz";
|
|
|
|
sha256 = "0f5ad519600qarsa2anmnaxh6b7djzx1dnwxzi4l36pxsq896y01";
|
2010-07-01 10:08:37 +01:00
|
|
|
};
|
|
|
|
|
2016-03-29 11:23:12 +01:00
|
|
|
buildInputs = [ erlang rebar ];
|
2010-07-01 10:08:37 +01:00
|
|
|
propagatedBuildInputs = [ SDL mesa ];
|
|
|
|
|
2016-03-29 11:23:12 +01:00
|
|
|
buildPhase = ''
|
|
|
|
rebar compile
|
|
|
|
'';
|
|
|
|
|
|
|
|
# 'cp' line taken from Arch recipe
|
|
|
|
# https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/erlang-sdl
|
|
|
|
installPhase = ''
|
|
|
|
DIR=$out/lib/erlang/lib/${name}
|
|
|
|
mkdir -p $DIR
|
|
|
|
cp -ruv c_src doc ebin include priv src $DIR
|
2010-07-01 10:08:37 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://esdl.sourceforge.net/;
|
|
|
|
description = "Erlang binding to SDL that includes a binding to OpenGL";
|
|
|
|
license = "BSD";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-07-01 10:08:37 +01:00
|
|
|
};
|
|
|
|
}
|