at 18.03-beta 39 lines 1.2 kB view raw
1{ stdenv, fetchurl 2, localBios ? true, nasm ? null 3, sdlSupport ? true, SDL ? null }: 4 5assert sdlSupport -> (SDL != null); 6 7stdenv.mkDerivation rec { 8 9 name = "8086tiny-${version}"; 10 version = "1.25"; 11 12 src = fetchurl { 13 url ="http://www.megalith.co.uk/8086tiny/downloads/8086tiny_125.tar.bz2"; 14 sha256 = "0kmq4iiwhi2grjwq43ljjk1b1f1v1x9gzrgrgq2fzfsj7m7s6ris"; 15 }; 16 17 buildInputs = with stdenv.lib; 18 optionals localBios [ nasm ] 19 ++ optionals sdlSupport [ SDL ]; 20 21 bios = localBios; 22 23 builder = ./builder.sh; 24 25 meta = { 26 description = "An open-source 8086 emulator"; 27 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. 29 30 8086tiny is based on an IOCCC 2013 winning entry. In fact that is the "unobfuscated" version :) 31 ''; 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; 36 }; 37} 38 39# TODO: add support for a locally made BIOS