tiny8086: remove builder.sh

+69 -74
-30
pkgs/applications/virtualization/8086tiny/builder.sh
··· 1 - 2 - source $stdenv/setup 3 - 4 - unpackPhase 5 - cd $sourceRoot 6 - 7 - make 8086tiny 8 - 9 - if [ $bios ]; then 10 - cd bios_source 11 - nasm -f bin bios.asm -o bios 12 - cd .. 13 - fi 14 - 15 - mkdir -p $out/bin $out/share/$name $out/share/doc/$name/images 16 - 17 - install -m 755 8086tiny $out/bin 18 - install -m 644 fd.img $out/share/$name/8086tiny-floppy.img 19 - install -m 644 bios_source/bios.asm $out/share/$name/8086tiny-bios-src.asm 20 - install -m 644 docs/8086tiny.css $out/share/doc/$name 21 - install -m 644 docs/doc.html $out/share/doc/$name 22 - for i in docs/images/*.gif 23 - do 24 - install -m 644 $i $out/share/doc/$name/images 25 - done 26 - if [ $bios ]; then 27 - install -m 644 bios_source/bios $out/share/$name/8086tiny-bios 28 - else 29 - install -m 644 bios $out/share/$name/8086tiny-bios 30 - fi
-43
pkgs/applications/virtualization/8086tiny/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub 2 - , localBios ? true, nasm ? null 3 - , sdlSupport ? true, SDL ? null }: 4 - 5 - assert sdlSupport -> (SDL != null); 6 - 7 - stdenv.mkDerivation rec { 8 - 9 - pname = "8086tiny"; 10 - version = "1.25"; 11 - 12 - src = fetchFromGitHub { 13 - owner = "adriancable"; 14 - repo = pname; 15 - rev = "c79ca2a34d96931d55ef724c815b289d0767ae3a"; 16 - sha256 = "00aydg8f28sgy8l3rd2a7jvp56lx3b63hhak43p7g7vjdikv495w"; 17 - }; 18 - 19 - buildInputs = with lib; 20 - optionals localBios [ nasm ] 21 - ++ optionals sdlSupport [ SDL ]; 22 - 23 - bios = localBios; 24 - 25 - builder = ./builder.sh; 26 - 27 - meta = with lib; { 28 - description = "An open-source small 8086 emulator"; 29 - longDescription = '' 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. 34 - 35 - 8086tiny is based on an IOCCC 2013 winning entry. In fact that is the 36 - "unobfuscated" version :) 37 - ''; 38 - homepage = "https://github.com/adriancable/8086tiny"; 39 - license = licenses.mit; 40 - maintainers = [ maintainers.AndersonTorres ]; 41 - platforms = platforms.linux; 42 - }; 43 - }
+68
pkgs/applications/virtualization/tiny8086/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , localBios ? true 5 + , nasm 6 + , sdlSupport ? true 7 + , SDL 8 + }: 9 + 10 + stdenv.mkDerivation rec { 11 + pname = "8086tiny"; 12 + version = "1.25"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "adriancable"; 16 + repo = pname; 17 + rev = "c79ca2a34d96931d55ef724c815b289d0767ae3a"; 18 + sha256 = "00aydg8f28sgy8l3rd2a7jvp56lx3b63hhak43p7g7vjdikv495w"; 19 + }; 20 + 21 + buildInputs = lib.optional localBios nasm 22 + ++ lib.optional sdlSupport SDL; 23 + 24 + makeFlags = [ "8086tiny" ]; 25 + 26 + postBuild = lib.optionalString localBios '' 27 + ( 28 + cd bios_source 29 + nasm -f bin bios.asm -o bios 30 + ) 31 + ''; 32 + 33 + installPhase = '' 34 + mkdir -p $out/bin $out/share/8086tiny $out/share/doc/8086tiny/images 35 + 36 + install -m 755 8086tiny $out/bin 37 + install -m 644 fd.img $out/share/8086tiny/8086tiny-floppy.img 38 + install -m 644 bios_source/bios.asm $out/share/8086tiny/8086tiny-bios-src.asm 39 + install -m 644 docs/8086tiny.css $out/share/doc/8086tiny 40 + install -m 644 docs/doc.html $out/share/doc/$name 41 + 42 + for i in docs/images/\*.gif; do 43 + install -m 644 $i $out/share/doc/8086tiny/images 44 + done 45 + 46 + ${if localBios then 47 + "install -m 644 bios_source/bios $out/share/8086tiny/8086tiny-bios" 48 + else 49 + "install -m 644 bios $out/share/8086tiny/8086tiny-bios"} 50 + ''; 51 + 52 + meta = with lib; { 53 + description = "An open-source small 8086 emulator"; 54 + longDescription = '' 55 + 8086tiny is a tiny, open-source (MIT), portable (little-endian hosts) 56 + Intel PC emulator, powerful enough to run DOS, Windows 3.0, Excel, MS 57 + Flight Simulator, AutoCAD, Lotus 1-2-3, and similar applications. 8086tiny 58 + emulates a "late 80's era" PC XT-type machine. 59 + 60 + 8086tiny is based on an IOCCC 2013 winning entry. In fact that is the 61 + "unobfuscated" version :) 62 + ''; 63 + homepage = "https://github.com/adriancable/8086tiny"; 64 + license = licenses.mit; 65 + maintainers = [ maintainers.AndersonTorres ]; 66 + platforms = platforms.linux; 67 + }; 68 + }
+1 -1
pkgs/top-level/all-packages.nix
··· 9359 9359 9360 9360 tinycbor = callPackage ../development/libraries/tinycbor { }; 9361 9361 9362 - tiny8086 = callPackage ../applications/virtualization/8086tiny { }; 9362 + tiny8086 = callPackage ../applications/virtualization/tiny8086 { }; 9363 9363 9364 9364 tinyemu = callPackage ../applications/virtualization/tinyemu { }; 9365 9365