@@ -1,17 +1,19 @@
1−{ stdenv, fetchurl
1+{ stdenv, fetchFromGitHub
22, localBios ? true, nasm ? null
33, sdlSupport ? true, SDL ? null }:
44
55assert sdlSupport -> (SDL != null);
66
7−stdenv.mkDerivation {
7+stdenv.mkDerivation rec{
88
99 pname = "8086tiny";
1010 version = "1.25";
1111
12− src = fetchurl {
13− url ="http://www.megalith.co.uk/8086tiny/downloads/8086tiny_125.tar.bz2";
14− sha256 = "0kmq4iiwhi2grjwq43ljjk1b1f1v1x9gzrgrgq2fzfsj7m7s6ris";
12+ src = fetchFromGitHub {
13+ owner = "adriancable";
14+ repo = pname;
15+ rev = "c79ca2a34d96931d55ef724c815b289d0767ae3a";
16+ sha256 = "00aydg8f28sgy8l3rd2a7jvp56lx3b63hhak43p7g7vjdikv495w";
1517 };
1618
1719 buildInputs = with stdenv.lib;
@@ -22,18 +24,20 @@ stdenv.mkDerivation {
2224
2325 builder = ./builder.sh;
2426
25− meta = {
26− description = "An open-source 8086 emulator";
27+ meta = with stdenv.lib; {
28+ description = "An open-source small 8086 emulator";
2729 longDescription = ''
28− 8086tiny is a tiny, open-source (MIT), portable (little-endian hosts) Intel PC emulator, powerful enough to run DOS, Windows 3.0, Excel, MS Flight Simulator, AutoCAD, Lotus 1-2-3, and similar applications. 8086tiny emulates a "late 80's era" PC XT-type machine.
30+ 8086tiny is a tiny, open-source (MIT), portable (little-endian hosts)
31+ Intel PC emulator, powerful enough to run DOS, Windows 3.0, Excel, MS
32+ Flight Simulator, AutoCAD, Lotus 1-2-3, and similar applications. 8086tiny
33+ emulates a "late 80's era" PC XT-type machine.
2934
30− 8086tiny is based on an IOCCC 2013 winning entry. In fact that is the "unobfuscated" version :)
35+ 8086tiny is based on an IOCCC 2013 winning entry. In fact that is the
36+ "unobfuscated" version :)
3137 '';
32− homepage = "http://www.megalith.co.uk/8086tiny/index.html";
33− license = stdenv.lib.licenses.mit;
34− maintainers = [ stdenv.lib.maintainers.AndersonTorres ];
35− platforms = stdenv.lib.platforms.linux;
38+ homepage = "https://github.com/adriancable/8086tiny";
39+ license = licenses.mit;
40+ maintainers = [ maintainers.AndersonTorres ];
41+ platforms = platforms.linux;
3642 };
3743}
38−
39−# TODO: add support for a locally made BIOS