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