2014-02-24 04:01:43 +01:00
|
|
|
{ stdenv, fetchurl
|
2014-05-08 03:31:43 +02:00
|
|
|
, localBios ? true, nasm ? null
|
2014-09-10 20:59:54 +02:00
|
|
|
, sdlSupport ? true, SDL ? null }:
|
2014-02-24 04:01:43 +01:00
|
|
|
|
|
|
|
assert sdlSupport -> (SDL != null);
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "8086tiny-${version}";
|
2014-05-08 03:31:43 +02:00
|
|
|
version = "1.25";
|
2014-02-24 04:01:43 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-05-08 03:31:43 +02:00
|
|
|
url ="http://www.megalith.co.uk/8086tiny/downloads/8086tiny_125.tar.bz2";
|
|
|
|
sha256 = "0kmq4iiwhi2grjwq43ljjk1b1f1v1x9gzrgrgq2fzfsj7m7s6ris";
|
2014-02-24 04:01:43 +01:00
|
|
|
};
|
2014-03-22 10:01:42 +01:00
|
|
|
|
2014-02-24 04:01:43 +01:00
|
|
|
buildInputs = with stdenv.lib;
|
2014-03-22 10:01:42 +01:00
|
|
|
optionals localBios [ nasm ]
|
2014-02-24 04:01:43 +01:00
|
|
|
++ optionals sdlSupport [ SDL ];
|
2014-05-08 03:31:43 +02:00
|
|
|
|
|
|
|
bios = localBios;
|
|
|
|
|
2014-02-24 04:01:43 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An open-source 8086 emulator";
|
|
|
|
longDescription = ''
|
2014-05-08 03:31:43 +02:00
|
|
|
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.
|
2014-03-22 10:01:42 +01:00
|
|
|
|
2014-02-24 04:01:43 +01:00
|
|
|
8086tiny is based on an IOCCC 2013 winning entry. In fact that is the "unobfuscated" version :)
|
|
|
|
'';
|
|
|
|
homepage = http://www.megalith.co.uk/8086tiny/index.html;
|
2014-03-22 05:12:48 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-03-22 18:30:45 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.AndersonTorres ];
|
2014-02-24 04:01:43 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
2014-03-22 18:30:45 +01:00
|
|
|
|
2014-03-23 15:52:03 +01:00
|
|
|
# TODO: add support for a locally made BIOS
|