Merge pull request #1821 from AndersonTorres/master

8086tiny: new package
This commit is contained in:
Domen Kožar 2014-03-07 13:18:12 +01:00
commit 58accbc745
3 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,19 @@
source $stdenv/setup
mkdir -p ./$name $out/bin $out/share/$name $out/share/doc/$name/images
cd $name
tar xf $src
make 8086tiny
install 8086tiny $out/bin
install bios $out/share/$name/8086tiny-bios
install fd.img $out/share/$name/8086tiny-floppy.img
install bios_source/bios.asm $out/share/$name/8086tiny-bios-src.asmn
install docs/8086tiny.css $out/share/doc/$name
install docs/doc.html $out/share/doc/$name
for i in docs/images/*.gif
do
install $i $out/share/doc/$name/images
done

View file

@ -0,0 +1,37 @@
{ stdenv, fetchurl
, localBios ? false, nasm ? null
, sdlSupport ? true, SDL ? null
}:
assert sdlSupport -> (SDL != null);
stdenv.mkDerivation rec {
name = "8086tiny-${version}";
version = "1.20";
src = fetchurl {
url ="http://www.megalith.co.uk/8086tiny/downloads/8086tiny_120.tar.bz2";
sha256 = "0yapnr8wvlx7h1q1w98yfy2vsbf0rlp4wd99r3xb0b7l70b36mpw";
};
buildInputs = with stdenv.lib;
optionals localBios [ nasm ]
++ optionals sdlSupport [ SDL ];
builder = ./builder.sh;
meta = {
description = "An open-source 8086 emulator";
longDescription = ''
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.
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;
license = "MIT";
platforms = stdenv.lib.platforms.linux;
};
}

View file

@ -1980,6 +1980,8 @@ let
tinc = callPackage ../tools/networking/tinc { };
tiny8086 = callPackage ../applications/virtualization/8086tiny { };
tmpwatch = callPackage ../tools/misc/tmpwatch { };
tmux = callPackage ../tools/misc/tmux { };