@@ -0,0 +1,35 @@
1+{ stdenv, fetchurl, pkgconfig
2+, gettext, gtk, SDL, zlib, glib, openal, mesa, lua, freetype }:
3+
4+with stdenv.lib;
5+stdenv.mkDerivation rec{
6+
7+ name = "fs-uae-${version}";
8+ version = "2.4.1";
9+
10+ src = fetchurl {
11+ urls = [ "http://fs-uae.net/fs-uae/stable/${version}/${name}.tar.gz" ];
12+ sha256 = "05gvnrkl1aclq1a6z57k6rmdnsg2ghyjcscwq0w5dhc5vcalv6f0";
13+ };
14+
15+ buildInputs = [ pkgconfig gettext gtk SDL zlib glib openal mesa lua freetype ];
16+
17+ phases = "unpackPhase buildPhase installPhase";
18+
19+ # Strange: the docs recommend SDL2, but it does compile only with SDL1
20+ buildPhase = "make sdl=1";
21+ installPhase = "make install prefix=$out";
22+
23+ meta = {
24+ description = "An accurate, customizable Amiga Emulator";
25+ longDescription = ''
26+ FS-UAE integrates the most accurate Amiga emulation code available
27+ from WinUAE. FS-UAE emulates A500, A500+, A600, A1200, A1000, A3000
28+ and A4000 models, but you can tweak the hardware configuration and
29+ create customized Amigas.
30+ '';
31+ license = licenses.gpl2Plus;
32+ homepage = http://fs-uae.net;
33+ maintainers = [ maintainers.AndersonTorres ];
34+ };
35+}