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