2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2014-05-08 01:31:43 +00:00
|
|
|
, localBios ? true, nasm ? null
|
2014-09-10 18:59:54 +00:00
|
|
|
, sdlSupport ? true, SDL ? null }:
|
2014-02-24 03:01:43 +00:00
|
|
|
|
|
|
|
assert sdlSupport -> (SDL != null);
|
|
|
|
|
2020-06-08 07:37:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-02-24 03:01:43 +00:00
|
|
|
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "8086tiny";
|
2014-05-08 01:31:43 +00:00
|
|
|
version = "1.25";
|
2014-02-24 03:01:43 +00:00
|
|
|
|
2020-06-06 05:35:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adriancable";
|
|
|
|
repo = pname;
|
|
|
|
rev = "c79ca2a34d96931d55ef724c815b289d0767ae3a";
|
|
|
|
sha256 = "00aydg8f28sgy8l3rd2a7jvp56lx3b63hhak43p7g7vjdikv495w";
|
2014-02-24 03:01:43 +00:00
|
|
|
};
|
2014-03-22 09:01:42 +00:00
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
buildInputs = with lib;
|
2014-03-22 09:01:42 +00:00
|
|
|
optionals localBios [ nasm ]
|
2014-02-24 03:01:43 +00:00
|
|
|
++ optionals sdlSupport [ SDL ];
|
2021-01-15 05:42:41 +00:00
|
|
|
|
2014-05-08 01:31:43 +00:00
|
|
|
bios = localBios;
|
2021-01-15 05:42:41 +00:00
|
|
|
|
2014-02-24 03:01:43 +00:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-06 05:35:31 +00:00
|
|
|
description = "An open-source small 8086 emulator";
|
2014-02-24 03:01:43 +00:00
|
|
|
longDescription = ''
|
2020-06-06 05:35:31 +00: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
|
|
|
|
2020-06-06 05:35:31 +00:00
|
|
|
8086tiny is based on an IOCCC 2013 winning entry. In fact that is the
|
|
|
|
"unobfuscated" version :)
|
2014-02-24 03:01:43 +00:00
|
|
|
'';
|
2020-06-06 05:35:31 +00:00
|
|
|
homepage = "https://github.com/adriancable/8086tiny";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2014-02-24 03:01:43 +00:00
|
|
|
};
|
|
|
|
}
|