git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #89603 from AndersonTorres/update-tiny8086

tiny8086: update source and build script

commit53780e794487ce314c5988080701e640f544031a authorAnderson Torres <torres.anderson.85@protonmail.com> dateSun 7 Jun 2020, 19:01 (6 years ago) parentc597a7f13abee9
2 files changed+24−18
pkgs/applications/virtualization/8086tiny/builder.sh+5−3 pkgs/applications/virtualization/8086tiny/default.nix+19−15
pkgs/applications/virtualization/8086tiny/builder.sh+5−3
@@ -1,17 +1,19 @@
11
22source $stdenv/setup
33
4−mkdir -p ./$name $out/bin $out/share/$name $out/share/doc/$name/images
4+unpackPhase
5+cd $sourceRoot
56
6−cd $name
7−tar xf $src
87make 8086tiny
8+
99if [ $bios ]; then
1010 cd bios_source
1111 nasm -f bin bios.asm -o bios
1212 cd ..
1313fi
1414
15+mkdir -p $out/bin $out/share/$name $out/share/doc/$name/images
16+
1517install -m 755 8086tiny $out/bin
1618install -m 644 fd.img $out/share/$name/8086tiny-floppy.img
1719install -m 644 bios_source/bios.asm $out/share/$name/8086tiny-bios-src.asm
pkgs/applications/virtualization/8086tiny/default.nix+19−15
@@ -1,17 +1,19 @@
1−{ stdenv, fetchurl
1+{ stdenv, fetchFromGitHub
22, localBios ? true, nasm ? null
33, sdlSupport ? true, SDL ? null }:
44
55assert sdlSupport -> (SDL != null);
66
7−stdenv.mkDerivation {
7+stdenv.mkDerivation rec{
88
99 pname = "8086tiny";
1010 version = "1.25";
1111
12− src = fetchurl {
13− url ="http://www.megalith.co.uk/8086tiny/downloads/8086tiny_125.tar.bz2";
14− sha256 = "0kmq4iiwhi2grjwq43ljjk1b1f1v1x9gzrgrgq2fzfsj7m7s6ris";
12+ src = fetchFromGitHub {
13+ owner = "adriancable";
14+ repo = pname;
15+ rev = "c79ca2a34d96931d55ef724c815b289d0767ae3a";
16+ sha256 = "00aydg8f28sgy8l3rd2a7jvp56lx3b63hhak43p7g7vjdikv495w";
1517 };
1618
1719 buildInputs = with stdenv.lib;
@@ -22,18 +24,20 @@ stdenv.mkDerivation {
2224
2325 builder = ./builder.sh;
2426
25− meta = {
26− description = "An open-source 8086 emulator";
27+ meta = with stdenv.lib; {
28+ description = "An open-source small 8086 emulator";
2729 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.
30+ 8086tiny is a tiny, open-source (MIT), portable (little-endian hosts)
31+ Intel PC emulator, powerful enough to run DOS, Windows 3.0, Excel, MS
32+ Flight Simulator, AutoCAD, Lotus 1-2-3, and similar applications. 8086tiny
33+ emulates a "late 80's era" PC XT-type machine.
2934
30− 8086tiny is based on an IOCCC 2013 winning entry. In fact that is the "unobfuscated" version :)
35+ 8086tiny is based on an IOCCC 2013 winning entry. In fact that is the
36+ "unobfuscated" version :)
3137 '';
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;
38+ homepage = "https://github.com/adriancable/8086tiny";
39+ license = licenses.mit;
40+ maintainers = [ maintainers.AndersonTorres ];
41+ platforms = platforms.linux;
3642 };
3743}
38−
39−# TODO: add support for a locally made BIOS