forked from mirrors/nixpkgs
Merge pull request #89603 from AndersonTorres/update-tiny8086
tiny8086: update source and build script
This commit is contained in:
commit
53780e7944
|
@ -1,17 +1,19 @@
|
||||||
|
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
mkdir -p ./$name $out/bin $out/share/$name $out/share/doc/$name/images
|
unpackPhase
|
||||||
|
cd $sourceRoot
|
||||||
|
|
||||||
cd $name
|
|
||||||
tar xf $src
|
|
||||||
make 8086tiny
|
make 8086tiny
|
||||||
|
|
||||||
if [ $bios ]; then
|
if [ $bios ]; then
|
||||||
cd bios_source
|
cd bios_source
|
||||||
nasm -f bin bios.asm -o bios
|
nasm -f bin bios.asm -o bios
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p $out/bin $out/share/$name $out/share/doc/$name/images
|
||||||
|
|
||||||
install -m 755 8086tiny $out/bin
|
install -m 755 8086tiny $out/bin
|
||||||
install -m 644 fd.img $out/share/$name/8086tiny-floppy.img
|
install -m 644 fd.img $out/share/$name/8086tiny-floppy.img
|
||||||
install -m 644 bios_source/bios.asm $out/share/$name/8086tiny-bios-src.asm
|
install -m 644 bios_source/bios.asm $out/share/$name/8086tiny-bios-src.asm
|
||||||
|
|
|
@ -1,17 +1,19 @@
|
||||||
{ stdenv, fetchurl
|
{ stdenv, fetchFromGitHub
|
||||||
, localBios ? true, nasm ? null
|
, localBios ? true, nasm ? null
|
||||||
, sdlSupport ? true, SDL ? null }:
|
, sdlSupport ? true, SDL ? null }:
|
||||||
|
|
||||||
assert sdlSupport -> (SDL != null);
|
assert sdlSupport -> (SDL != null);
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec{
|
||||||
|
|
||||||
pname = "8086tiny";
|
pname = "8086tiny";
|
||||||
version = "1.25";
|
version = "1.25";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url ="http://www.megalith.co.uk/8086tiny/downloads/8086tiny_125.tar.bz2";
|
owner = "adriancable";
|
||||||
sha256 = "0kmq4iiwhi2grjwq43ljjk1b1f1v1x9gzrgrgq2fzfsj7m7s6ris";
|
repo = pname;
|
||||||
|
rev = "c79ca2a34d96931d55ef724c815b289d0767ae3a";
|
||||||
|
sha256 = "00aydg8f28sgy8l3rd2a7jvp56lx3b63hhak43p7g7vjdikv495w";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with stdenv.lib;
|
buildInputs = with stdenv.lib;
|
||||||
|
@ -22,18 +24,20 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "An open-source 8086 emulator";
|
description = "An open-source small 8086 emulator";
|
||||||
longDescription = ''
|
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 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 :)
|
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";
|
homepage = "https://github.com/adriancable/8086tiny";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ stdenv.lib.maintainers.AndersonTorres ];
|
maintainers = [ maintainers.AndersonTorres ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: add support for a locally made BIOS
|
|
||||||
|
|
Loading…
Reference in a new issue