at 18.03-beta 32 lines 858 B view raw
1{stdenv, fetchurl, SDL, libGLU_combined, rebar, erlang}: 2 3stdenv.mkDerivation rec { 4 name = "esdl-1.3.1"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/esdl/${name}.src.tgz"; 8 sha256 = "0f5ad519600qarsa2anmnaxh6b7djzx1dnwxzi4l36pxsq896y01"; 9 }; 10 11 buildInputs = [ erlang rebar ]; 12 propagatedBuildInputs = [ SDL libGLU_combined ]; 13 14 buildPhase = '' 15 rebar compile 16 ''; 17 18 # 'cp' line taken from Arch recipe 19 # https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/erlang-sdl 20 installPhase = '' 21 DIR=$out/lib/erlang/lib/${name} 22 mkdir -p $DIR 23 cp -ruv c_src doc ebin include priv src $DIR 24 ''; 25 26 meta = { 27 homepage = http://esdl.sourceforge.net/; 28 description = "Erlang binding to SDL that includes a binding to OpenGL"; 29 license = "BSD"; 30 platforms = stdenv.lib.platforms.linux; 31 }; 32}