@daugasauron/dolly-package-tmux 0.0.0-stage → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/Dollyfile-cc +29 -0
  2. package/Dollyfile-curl +57 -0
  3. package/Dollyfile-display +34 -0
  4. package/Dollyfile-ghostty-build +185 -0
  5. package/Dollyfile-git +155 -0
  6. package/Dollyfile-gzip +19 -0
  7. package/Dollyfile-libdolly-display +24 -0
  8. package/Dollyfile-libdolly-input +24 -0
  9. package/Dollyfile-libdolly-pty +24 -0
  10. package/Dollyfile-libdolly-sockets +24 -0
  11. package/Dollyfile-make +11 -0
  12. package/Dollyfile-mandoc +131 -0
  13. package/Dollyfile-system-build +364 -0
  14. package/Dollyfile-system-tools +205 -0
  15. package/Dollyfile-vi +67 -0
  16. package/Dollyfile-zig-build +154 -0
  17. package/Dollyfile-zlib +48 -0
  18. package/README.md +11 -2
  19. package/amy-index.txt +1 -0
  20. package/demos/cmake/Dollyfile-cmake +80 -0
  21. package/demos/cmake/Dollyfile-cmake-build +15 -0
  22. package/demos/cmake/Dollyfile-libuv +44 -0
  23. package/demos/tmux/Dollyfile-libevent +144 -0
  24. package/demos/tmux/Dollyfile-libterminfo +78 -0
  25. package/demos/tmux/Dollyfile-tmux +102 -0
  26. package/demos/tools/Dollyfile-tools-build +22 -0
  27. package/dist/dolly-cc-system-snapshot.json +1918 -0
  28. package/dist/dolly-cmake-build-system-snapshot.json +6588 -0
  29. package/dist/dolly-cmake-system-snapshot.json +4434 -0
  30. package/dist/dolly-curl-system-snapshot.json +73 -0
  31. package/dist/dolly-display-system-snapshot.json +111 -0
  32. package/dist/dolly-ghostty-build-system-snapshot.json +3541 -0
  33. package/dist/dolly-git-system-snapshot.json +137 -0
  34. package/dist/dolly-gzip-system-snapshot.json +69 -0
  35. package/dist/dolly-images.json +871 -0
  36. package/dist/dolly-libdolly-display-system-snapshot.json +57 -0
  37. package/dist/dolly-libdolly-input-system-snapshot.json +57 -0
  38. package/dist/dolly-libdolly-pty-system-snapshot.json +57 -0
  39. package/dist/dolly-libdolly-sockets-system-snapshot.json +57 -0
  40. package/dist/dolly-libevent-system-snapshot.json +164 -0
  41. package/dist/dolly-libterminfo-system-snapshot.json +148 -0
  42. package/dist/dolly-libuv-system-snapshot.json +162 -0
  43. package/dist/dolly-make-system-snapshot.json +57 -0
  44. package/dist/dolly-mandoc-system-snapshot.json +152 -0
  45. package/dist/dolly-system-build-system-snapshot.json +1947 -0
  46. package/dist/dolly-system-tools-system-snapshot.json +2275 -0
  47. package/dist/dolly-tmux-system-snapshot.json +276 -0
  48. package/dist/dolly-tools-build-system-snapshot.json +6609 -0
  49. package/dist/dolly-vi-system-snapshot.json +82 -0
  50. package/dist/dolly-zig-build-system-snapshot.json +3417 -0
  51. package/dist/dolly-zlib-system-snapshot.json +59 -0
  52. package/dist/packs/7026f8e001e3e0a68dd389200dfd417a548c0852a31a29558d3f02b44d4d8393.snapshot.gz +0 -0
  53. package/package.json +12 -4
package/Dollyfile-cc ADDED
@@ -0,0 +1,29 @@
1
+ DOLLY 8
2
+ PACKAGE cc
3
+ REQUIRES HOST runtime@0
4
+
5
+ # The C/C++ toolchain as system-build bootstraps it: the compiler and its
6
+ # drivers, the C and C++ headers and libraries and the host clients, with the
7
+ # make package.
8
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
9
+ INSTALL /Dollyfile-make 51df2ffdf4a717b48244209c92fed92ead402930627d9e9cf9aaead72700b8ac
10
+
11
+ EXPORTS FILE compiler /usr/libexec/dolly/process-bin/compiler
12
+ EXPORTS FOLDER process-sdk /usr/lib/dolly/process
13
+ EXPORTS FOLDER clang-headers /usr/lib/clang/24/include
14
+ EXPORTS HEADER libc /usr/include
15
+ EXPORTS LIB compiler-rt /usr/lib/libclang_rt.builtins.a
16
+ EXPORTS FILE kernel-plugin-abi /usr/lib/dolly/dolly-kernel-plugin-0.wasm
17
+ EXPORTS TOOL cc
18
+ EXPORTS TOOL c++
19
+ EXPORTS TOOL ld
20
+ EXPORTS TOOL ar
21
+ EXPORTS ENV CC cc
22
+ EXPORTS ENV CXX c++
23
+ EXPORTS ENV AR ar
24
+ FILE /usr/share/man/cat1/ar.1
25
+ FILE /usr/share/man/cat1/c++.1
26
+ FILE /usr/share/man/cat1/cc.1
27
+ FILE /usr/share/man/cat1/ld.1
28
+ FILE /usr/share/licenses/libcxx/LICENSE
29
+ FILE /usr/share/licenses/libcxxabi/LICENSE
package/Dollyfile-curl ADDED
@@ -0,0 +1,57 @@
1
+ DOLLY 8
2
+ PACKAGE curl
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST http@0
5
+
6
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
7
+
8
+ REQUIRES HEADER libc
9
+ REQUIRES TOOL ar
10
+ REQUIRES TOOL cc
11
+ REQUIRES TOOL make
12
+ REQUIRES TOOL rm
13
+ REQUIRES TOOL tar
14
+
15
+ SOURCE /dist/static/default/curl-headers.tar 346a0298fcbdafbad7d0c0259a2d7b8539ca46c39222797c01dcac213564bf30 /tmp/curl-headers.tar
16
+ SOURCE /host/http/libcurl.c bdf44cc786ba51355b4fe4b9e9621341a0d71e88710ba3ab653153bdf00aa4e0 /usr/src/dolly/libcurl-fetch.c
17
+ SOURCE /dist/static/default/commands/curl.c 18d0990ee12865561155f0d2a866f73caa1c82a825c7c8733c8e7c79ff815f3c /usr/src/dolly/commands/curl.c
18
+ SLOP tar \
19
+ -xf /tmp/curl-headers.tar \
20
+ -C /
21
+
22
+ FILE /tmp/curl/Makefile
23
+ .RECIPEPREFIX := >
24
+ all: /usr/lib/libcurl.a /usr/bin/curl
25
+ /tmp/libcurl-fetch.o: /usr/src/dolly/libcurl-fetch.c
26
+ >cc \
27
+ > -c $< \
28
+ > -o $@
29
+ /usr/lib/libcurl.a: /tmp/libcurl-fetch.o
30
+ >ar rcs $@ $^
31
+ /usr/bin/curl: /usr/src/dolly/commands/curl.c /usr/lib/libcurl.a
32
+ >cc \
33
+ > -O2 \
34
+ > $< \
35
+ > -lcurl \
36
+ > -o $@
37
+ SLOP CWD / make \
38
+ -f /tmp/curl/Makefile
39
+
40
+ EXPORTS TOOL curl
41
+
42
+ SLOP curl \
43
+ --version
44
+ SLOP curl --help > /usr/share/man/cat1/curl.1
45
+ FILE /usr/share/man/cat1/curl.1
46
+
47
+ EXPORTS LIB curl /usr/lib/libcurl.a
48
+ EXPORTS HEADER curl /usr/include/curl
49
+ FILE /usr/share/licenses/curl/COPYING
50
+
51
+ SLOP rm \
52
+ -rf \
53
+ /tmp/curl \
54
+ /tmp/curl-headers.tar \
55
+ /tmp/libcurl-fetch.o \
56
+ /usr/src/dolly/commands/curl.c \
57
+ /usr/src/dolly/libcurl-fetch.c
@@ -0,0 +1,34 @@
1
+ DOLLY 8
2
+ PACKAGE display
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST display@0
5
+
6
+ COPY /Dollyfile-ghostty-build 6326d56db9733d5e6e3687931f1f09a650e8a8cc0def629b8c329211fa50ae3c /usr/lib/libdisplay.so /usr/lib/libdisplay.so
7
+ COPY /Dollyfile-ghostty-build 6326d56db9733d5e6e3687931f1f09a650e8a8cc0def629b8c329211fa50ae3c /usr/share/fonts/IosevkaTerm-SemiBold.ttf /usr/share/fonts/IosevkaTerm-SemiBold.ttf
8
+ COPY /Dollyfile-ghostty-build 6326d56db9733d5e6e3687931f1f09a650e8a8cc0def629b8c329211fa50ae3c /usr/share/licenses/ghostty /usr/share/licenses/ghostty
9
+ COPY /Dollyfile-ghostty-build 6326d56db9733d5e6e3687931f1f09a650e8a8cc0def629b8c329211fa50ae3c /usr/share/licenses/uucode /usr/share/licenses/uucode
10
+ COPY /Dollyfile-ghostty-build 6326d56db9733d5e6e3687931f1f09a650e8a8cc0def629b8c329211fa50ae3c /usr/share/fonts/DroidSansFallback.ttf /usr/share/fonts/DroidSansFallback.ttf
11
+ COPY /Dollyfile-ghostty-build 6326d56db9733d5e6e3687931f1f09a650e8a8cc0def629b8c329211fa50ae3c /usr/share/fonts/NotoEmoji-Regular.ttf /usr/share/fonts/NotoEmoji-Regular.ttf
12
+ COPY /Dollyfile-ghostty-build 6326d56db9733d5e6e3687931f1f09a650e8a8cc0def629b8c329211fa50ae3c /usr/share/licenses/droid-fonts /usr/share/licenses/droid-fonts
13
+ COPY /Dollyfile-ghostty-build 6326d56db9733d5e6e3687931f1f09a650e8a8cc0def629b8c329211fa50ae3c /usr/share/licenses/noto-emoji /usr/share/licenses/noto-emoji
14
+ # The terminal as termcap describes it, for programs that link a termcap
15
+ # library (less, Emacs): TERM is xterm-256color.
16
+ FILE /etc/termcap
17
+ xterm-256color|xterm|Dolly terminal:\
18
+ :am:bs:km:mi:ms:xn:co#80:it#8:li#24:Co#256:pa#32767:\
19
+ :AB=\E[48;5;%dm:AF=\E[38;5;%dm:op=\E[39;49m:\
20
+ :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
21
+ :LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
22
+ :ae=\E(B:al=\E[L:as=\E(0:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:\
23
+ :cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=\r:cs=\E[%i%d;%dr:ct=\E[3g:\
24
+ :dc=\E[P:dl=\E[M:do=\n:ec=\E[%dX:ei=\E[4l:ho=\E[H:im=\E[4h:\
25
+ :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:\
26
+ :k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:\
27
+ :kP=\E[5~:kb=\177:kd=\EOB:ke=\E[?1l\E>:kh=\EOH:kl=\EOD:@7=\EOF:\
28
+ :kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:\
29
+ :me=\E[0m:mh=\E[2m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[27m:\
30
+ :sf=\n:so=\E[7m:sr=\EM:st=\EH:ta=^I:te=\E[?1049l:ti=\E[?1049h:\
31
+ :ue=\E[24m:up=\E[A:us=\E[4m:ve=\E[?12l\E[?25h:vi=\E[?25l:\
32
+ :vs=\E[?12;25h:
33
+ EXPORTS LIB display /usr/lib/libdisplay.so
34
+ EXPORTS ENV DOLLY_DISPLAY_LIBRARY /usr/lib/libdisplay.so
@@ -0,0 +1,185 @@
1
+ DOLLY 8
2
+ TOOLCHAIN ghostty-build
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST display@0
5
+ REQUIRES HOST input@0
6
+
7
+ FROM /Dollyfile-zig-build 0cd82e87084c1aa809f8758b2df2a9904575b466d21596819e6667db839d4393
8
+ INSTALL /Dollyfile-libdolly-display afbf05e4d39eda376f6195f86762fb635a3effb3f2e5414ef1ffa70b298af919
9
+ INSTALL /Dollyfile-libdolly-input 22d9db2a107fd5721f70d9662921b2e3fd9432549056e9e27e0ee36e6a898c84
10
+
11
+ REQUIRES HEADER libc
12
+ REQUIRES HEADER display
13
+ REQUIRES HEADER input
14
+ REQUIRES TOOL ar
15
+ REQUIRES TOOL cc
16
+ REQUIRES TOOL make
17
+ REQUIRES TOOL rm
18
+ REQUIRES TOOL tar
19
+ REQUIRES TOOL zig
20
+
21
+ SOURCE /dist/static/default/ghostty.tar 74e6b2f57be127f98828c7efc088a654779c72e331ad998d803fea43a343e884 /tmp/ghostty.tar
22
+ SOURCE /dist/static/default/uucode.tar be9d52ab9c0f49deb5fd8baa54b4b14f490f8e29e200d044e908d7adad54e3d0 /tmp/uucode.tar
23
+ SOURCE /dist/static/default/ghostty/display.c a7e79a8cf1eeae5538e673eb66c644e7466a5d9a03bf621d2c32c090be2f1a4b /usr/src/dolly/ghostty/display.c
24
+ SOURCE /dist/static/default/stb_truetype.h ecd30b05e0dd4fea3a13c26810dd9e1992dc379049482c393d5a19e6b5090aab /tmp/ghostty/stb_truetype.h
25
+ SOURCE /dist/static/default/stb_image.h 594c2fe35d49488b4382dbfaec8f98366defca819d916ac95becf3e75f4200b3 /tmp/ghostty/stb_image.h
26
+ SOURCE /dist/static/default/IosevkaTerm-SemiBold.ttf cb3fd282d86c0e7cc2829f848df5a58973db98c8369a20427a9b3d06727e5aaa /usr/share/fonts/IosevkaTerm-SemiBold.ttf
27
+ # What IosevkaTerm has no glyph for: Chinese, Japanese and Korean, then emoji.
28
+ SOURCE /dist/static/default/DroidSansFallback.ttf 56d3edfb377a8bc3c4b77f4476405c770173c0e31221ad7c77d0a8e1f3039a3e /usr/share/fonts/DroidSansFallback.ttf
29
+ SOURCE /dist/static/default/droid-fonts-NOTICE 38751245389e1e23f73e6f5384b5cbe7fa972cc4410c5adc9c04b082a0b9561a /usr/share/licenses/droid-fonts/NOTICE
30
+ SOURCE /dist/static/default/NotoEmoji-Regular.ttf cd07743a4c93d8da929afdd28c1d368f11da478a1093146a13610081c2a58440 /usr/share/fonts/NotoEmoji-Regular.ttf
31
+ SOURCE /dist/static/default/noto-emoji-OFL.txt fb755fa3280d1d215a20df2e64fe6a0f75f8208439b11671978214aae60d2997 /usr/share/licenses/noto-emoji/OFL.txt
32
+ SLOP tar \
33
+ -xf /tmp/ghostty.tar \
34
+ -C /
35
+ SLOP tar \
36
+ -xf /tmp/uucode.tar \
37
+ -C /
38
+
39
+ # The Unicode tables' generators run as programs of this Zig: Zig's page
40
+ # allocator on WebAssembly grows the memory itself, behind libc's sbrk, so
41
+ # their root gives them libc's.
42
+ FILE /tmp/ghostty/generator.zig
43
+ const std = @import("std");
44
+ pub const os = struct {
45
+ pub const heap = struct {
46
+ pub const page_allocator = std.heap.c_allocator;
47
+ };
48
+ };
49
+ pub const main = @import("generate").main;
50
+
51
+ # Zig emits Ghostty VT and compiler_rt as C; cc compiles them. zig.h passes
52
+ # usize as uint64_t *, and @returnAddress would import an Emscripten helper.
53
+ # The Unicode tables are generated first, as Ghostty's build does
54
+ # (src/build/UnicodeTables.zig, uucode's build.zig): uucode's generator reads
55
+ # the UCD and writes its tables, over which Ghostty's two print theirs.
56
+ FILE /tmp/ghostty/Makefile
57
+ .RECIPEPREFIX := >
58
+ ZIGFLAGS := -OReleaseSmall -target wasm64-emscripten -mcpu=generic+atomics -fsingle-threaded -ofmt=c
59
+ CFLAGS := -O2 -std=c99 -fno-strict-aliasing -Wno-incompatible-pointer-types -I /usr/lib/zig
60
+ UUCODE_CONFIG := --dep storage.zig -Mconfig.zig=/usr/src/uucode/src/config.zig \
61
+ --dep config.zig -Mstorage.zig=/usr/src/uucode/src/storage.zig \
62
+ --dep config.zig --dep storage.zig -Mbuild_config=/usr/src/ghostty/src/build/uucode_config.zig
63
+ GENERATORS := /tmp/ghostty/uucode-generate /tmp/ghostty/props-generate /tmp/ghostty/symbols-generate
64
+ all: /usr/lib/libghostty-vt.a /usr/lib/libdisplay.so
65
+ /tmp/ghostty/uucode-generate.c:
66
+ >zig build-exe $(ZIGFLAGS) -lc --name uucode-generate --dep generate -Mroot=/tmp/ghostty/generator.zig \
67
+ > --dep config.zig --dep storage.zig --dep build_config -Mgenerate=/usr/src/uucode/src/generate.zig \
68
+ > $(UUCODE_CONFIG) -femit-bin=$@
69
+ /tmp/ghostty/props-generate.c /tmp/ghostty/symbols-generate.c: /tmp/ghostty/uucode-tables.zig
70
+ >zig build-exe $(ZIGFLAGS) -lc --name $(basename $(@F)) --dep generate -Mroot=/tmp/ghostty/generator.zig \
71
+ > --dep uucode -Mgenerate=/usr/src/ghostty/src/unicode/$(subst -generate.c,_uucode.zig,$(@F)) \
72
+ > --dep types.zig --dep config.zig --dep tables -Muucode=/usr/src/uucode/src/root.zig \
73
+ > -Mtypes.zig=/usr/src/uucode/src/types.zig \
74
+ > --dep types.zig $(UUCODE_CONFIG) \
75
+ > --dep config.zig --dep storage.zig --dep build_config -Mtables=/tmp/ghostty/uucode-tables.zig -femit-bin=$@
76
+ $(GENERATORS): %: %.c /tmp/ghostty/compiler_rt.o
77
+ >cc $(CFLAGS) '-D__builtin_return_address(level)=0' -o $@ $^
78
+ /tmp/ghostty/uucode-tables.zig: /tmp/ghostty/uucode-generate
79
+ >cd /usr/src/uucode && $< $@
80
+ /tmp/ghostty/unicode-props.zig /tmp/ghostty/unicode-symbols.zig: /tmp/ghostty/unicode-%.zig: /tmp/ghostty/%-generate
81
+ >$< > $@
82
+ /tmp/ghostty/ghostty-vt.c: /tmp/ghostty/uucode-tables.zig /tmp/ghostty/unicode-props.zig /tmp/ghostty/unicode-symbols.zig
83
+ >zig build-obj \
84
+ > $(ZIGFLAGS) \
85
+ > -lc \
86
+ > --name ghostty-vt \
87
+ > --dep build_options \
88
+ > --dep terminal_options \
89
+ > --dep wuffs \
90
+ > --dep unicode_tables \
91
+ > --dep symbols_tables \
92
+ > --dep uucode \
93
+ > -Mroot=/usr/src/ghostty/src/lib_vt.zig \
94
+ > -Mbuild_options=/usr/src/ghostty/generated/build-options.zig \
95
+ > -Mterminal_options=/usr/src/ghostty/generated/terminal-options.zig \
96
+ > -Municode_tables=/tmp/ghostty/unicode-props.zig \
97
+ > -Msymbols_tables=/tmp/ghostty/unicode-symbols.zig \
98
+ > -ODebug \
99
+ > --dep types.zig \
100
+ > --dep config.zig \
101
+ > --dep tables \
102
+ > -Muucode=/usr/src/uucode/src/root.zig \
103
+ > -ODebug \
104
+ > -Mtypes.zig=/usr/src/uucode/src/types.zig \
105
+ > -ODebug \
106
+ > --dep types.zig \
107
+ > --dep storage.zig \
108
+ > -Mconfig.zig=/usr/src/uucode/src/config.zig \
109
+ > -ODebug \
110
+ > --dep config.zig \
111
+ > --dep storage.zig \
112
+ > --dep build_config \
113
+ > -Mtables=/tmp/ghostty/uucode-tables.zig \
114
+ > -ODebug \
115
+ > --dep config.zig \
116
+ > -Mstorage.zig=/usr/src/uucode/src/storage.zig \
117
+ > --dep config.zig \
118
+ > --dep storage.zig \
119
+ > -Mbuild_config=/usr/src/ghostty/src/build/uucode_config.zig \
120
+ > -OReleaseSmall \
121
+ > --dep wuffs_c \
122
+ > -Mwuffs=/usr/src/ghostty/pkg/wuffs/src/main.zig \
123
+ > --dep c_builtins \
124
+ > --dep helpers \
125
+ > -Mwuffs_c=/usr/src/ghostty/generated/wuffs-c.zig \
126
+ > -Mc_builtins=/usr/src/translate_c/lib/c_builtins.zig \
127
+ > -Mhelpers=/usr/src/translate_c/lib/helpers.zig \
128
+ > -femit-bin=$@
129
+ /tmp/ghostty/compiler_rt.c:
130
+ >zig build-obj $(ZIGFLAGS) --name compiler_rt -Mroot=/usr/lib/zig/compiler_rt.zig -femit-bin=$@
131
+ /tmp/ghostty/ghostty-vt.o: /tmp/ghostty/ghostty-vt.c
132
+ >cc -c $(CFLAGS) '-D__builtin_return_address(level)=0' -o $@ $<
133
+ /tmp/ghostty/compiler_rt.o: /tmp/ghostty/compiler_rt.c
134
+ >cc -c $(CFLAGS) -o $@ $<
135
+ # Wuffs as Ghostty's pkg/wuffs/build.zig builds it, for kitty graphics;
136
+ # hidden, as the plugin's own code: its vtables name its functions.
137
+ /tmp/ghostty/wuffs.o: /usr/src/wuffs/wuffs-v0.4.c
138
+ >cc -c -O2 -fvisibility=hidden -DWUFFS_IMPLEMENTATION -DWUFFS_CONFIG__MODULES -DWUFFS_CONFIG__MODULE__AUX__BASE \
139
+ > -DWUFFS_CONFIG__MODULE__AUX__IMAGE -DWUFFS_CONFIG__MODULE__BASE -DWUFFS_CONFIG__MODULE__ADLER32 \
140
+ > -DWUFFS_CONFIG__MODULE__CRC32 -DWUFFS_CONFIG__MODULE__DEFLATE -DWUFFS_CONFIG__MODULE__JPEG \
141
+ > -DWUFFS_CONFIG__MODULE__PNG -DWUFFS_CONFIG__MODULE__ZLIB -o $@ $<
142
+ /usr/lib/libghostty-vt.a: /tmp/ghostty/ghostty-vt.o /tmp/ghostty/compiler_rt.o /tmp/ghostty/wuffs.o
143
+ >ar rcs $@ $^
144
+ /usr/lib/libdisplay.so: /usr/src/dolly/ghostty/display.c /usr/lib/libghostty-vt.a
145
+ >cc \
146
+ > -shared \
147
+ > --dolly-kernel-plugin \
148
+ > -O2 \
149
+ > -I /tmp/ghostty \
150
+ > -I /usr/include \
151
+ > $< \
152
+ > -lghostty-vt \
153
+ > -o $@
154
+ SLOP CWD /usr/src/ghostty make \
155
+ -f /tmp/ghostty/Makefile
156
+
157
+ FILE /usr/share/fonts/IosevkaTerm-SemiBold.ttf
158
+ FILE /usr/share/fonts/DroidSansFallback.ttf
159
+ FILE /usr/share/fonts/NotoEmoji-Regular.ttf
160
+ FILE /usr/share/licenses/droid-fonts/NOTICE
161
+ FILE /usr/share/licenses/noto-emoji/OFL.txt
162
+ FILE /usr/share/licenses/ghostty/LICENSE
163
+ FILE /usr/share/licenses/uucode/LICENSE.md
164
+ FILE /usr/share/licenses/uucode/LICENSE_unicode
165
+ FILE /usr/share/licenses/wuffs/LICENSE-APACHE
166
+ FILE /usr/share/licenses/wuffs/LICENSE-MIT
167
+ FILE /usr/share/licenses/translate-c/LICENSE
168
+
169
+ EXPORTS LIB ghostty-vt /usr/lib/libghostty-vt.a
170
+ EXPORTS LIB display /usr/lib/libdisplay.so
171
+ EXPORTS HEADER ghostty-vt /usr/include/ghostty
172
+
173
+ SLOP rm \
174
+ -rf \
175
+ /tmp/ghostty \
176
+ /tmp/ghostty.tar \
177
+ /tmp/uucode.tar \
178
+ /usr/src/dolly/ghostty \
179
+ /usr/src/ghostty \
180
+ /usr/src/uucode
181
+
182
+ # Opened, the image runs the display library it just built.
183
+ EXPORTS ENV DOLLY_DISPLAY_LIBRARY /usr/lib/libdisplay.so
184
+
185
+ ENTRY /bin/foreground -i /bin/slop
package/Dollyfile-git ADDED
@@ -0,0 +1,155 @@
1
+ DOLLY 8
2
+ PACKAGE git
3
+ REQUIRES HOST runtime@0
4
+ REQUIRES HOST threads@0
5
+
6
+ # Git, and Dolly's diff and patch, which run it; its HTTP helpers are the
7
+ # git-http package. Git links zlib, which serves the build and is not
8
+ # installed with it. Git runs its asyncs, a side band's reader among them, as
9
+ # threads; without threads it would fork them.
10
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
11
+ USE /Dollyfile-zlib acf8f8daaba24468b5b521bbb4d4ba3e034fe28d7a2d92fc680d2e39a1cea971
12
+ # The editor of git commit, rebase -i and tag -a: Git's default, vi.
13
+ INSTALL /Dollyfile-vi 2f8c69304867695f8384da828df57d7271e5f92ac95024877aef1a20675cb6ff
14
+ REQUIRES HEADER libc
15
+ REQUIRES HEADER runtime
16
+ REQUIRES HEADER zlib
17
+ REQUIRES LIB z
18
+ REQUIRES TOOL ar
19
+ REQUIRES TOOL cc
20
+ REQUIRES TOOL make
21
+ REQUIRES TOOL mkdir
22
+ REQUIRES TOOL rm
23
+ REQUIRES TOOL tar
24
+
25
+ SOURCE /dist/static/default/git.tar 5c190c2a9301f54afab080b85341a8cd683bee1995b2d911e0bdea93f5eb845a /tmp/git.tar
26
+ SLOP tar \
27
+ -xf /tmp/git.tar \
28
+ -C /
29
+
30
+ # Automatic maintenance forks; the system configuration turns it off.
31
+ FILE /etc/gitconfig
32
+ [maintenance]
33
+ auto = false
34
+ FILE /home/dolly/.gitconfig
35
+ [user]
36
+ name = Dolly
37
+ email = dolly@example.invalid
38
+ FILE /tmp/git/Makefile
39
+ .RECIPEPREFIX := >
40
+ SOURCES := $(file </usr/src/git/dolly-sources.txt)
41
+ OBJECTS := $(addprefix /tmp/git/objects/,$(SOURCES:.c=.o))
42
+ # NO_REGEX takes Git's regex, with GAWK and NO_MBSUPPORT as its Makefile
43
+ # sets them: the sysroot's regex.h has no REG_STARTEND. NO_CURL: the HTTP
44
+ # helpers, which link libcurl, are the git-http package's.
45
+ # Git ends with status 128 when its pager cannot start, so the default one
46
+ # is a command for Slop: less when it is installed, cat otherwise.
47
+ CPPFLAGS := \
48
+ -O2 \
49
+ -std=gnu99 \
50
+ -Wno-ignored-attributes \
51
+ -D_DEFAULT_SOURCE \
52
+ -DNO_GETTEXT \
53
+ -DNO_ICONV \
54
+ -DNO_EXPAT \
55
+ -DNO_CURL \
56
+ -pthread \
57
+ -DNO_UNIX_SOCKETS \
58
+ -DNO_OPENSSL \
59
+ -DNO_PERL \
60
+ -DNO_PYTHON \
61
+ -DNO_IPV6 \
62
+ -DNO_MMAP \
63
+ -DNO_REGEX \
64
+ -DGAWK \
65
+ -DNO_MBSUPPORT \
66
+ -DNO_STRLCPY \
67
+ -DSHA1_BLK \
68
+ -DSHA256_BLK \
69
+ -DHAVE_ALLOCA_H \
70
+ -DHAVE_STRINGS_H \
71
+ -DHAVE_CLOCK_GETTIME \
72
+ -DHAVE_GETRANDOM \
73
+ '-DGIT_VERSION_H="version-def.h"' \
74
+ '-DBINDIR="/usr/bin"' \
75
+ '-DGIT_EXEC_PATH="/usr/libexec/dolly"' \
76
+ '-DDEFAULT_GIT_TEMPLATE_DIR="/usr/share/git-core/templates"' \
77
+ '-DFALLBACK_RUNTIME_PREFIX="/usr"' \
78
+ '-DGIT_HOST_CPU="wasm64"' \
79
+ '-DGIT_LOCALE_PATH="/usr/share/locale"' \
80
+ '-DSHELL_PATH="/bin/slop"' \
81
+ '-DDEFAULT_PAGER="$$(command -v less || command -v cat)"' \
82
+ '-DPAGER_ENV="LESS=FRX LV=-c"' \
83
+ '-DETC_GITCONFIG="/etc/gitconfig"' \
84
+ '-DETC_GITATTRIBUTES="/etc/gitattributes"' \
85
+ '-DGIT_HTML_PATH="/usr/share/doc/git/html"' \
86
+ '-DGIT_MAN_PATH="/usr/share/man"' \
87
+ '-DGIT_INFO_PATH="/usr/share/info"' \
88
+ -I /usr/src/git/compat/regex \
89
+ -I /usr/src/git \
90
+ -include dolly/runtime.h
91
+ all: /usr/bin/git
92
+ /tmp/git/objects/%.o: /usr/src/git/%.c
93
+ >mkdir -p $(dir $@)
94
+ >cc \
95
+ > $(CPPFLAGS) \
96
+ > -c $< \
97
+ > -o $@
98
+ /usr/lib/libgit.a: $(OBJECTS)
99
+ >ar rcs $@ $^
100
+ /usr/bin/git: /usr/src/git/common-main.c /usr/src/git/git.c /usr/lib/libgit.a
101
+ >cc \
102
+ > $(CPPFLAGS) \
103
+ > /usr/src/git/common-main.c \
104
+ > /usr/src/git/git.c \
105
+ > -lgit \
106
+ > -lz \
107
+ > -o $@
108
+ SLOP CWD /usr/src/git make \
109
+ -f /tmp/git/Makefile
110
+
111
+ EXPORTS TOOL git
112
+
113
+ SLOP git \
114
+ --version
115
+ # The builtins a local transport runs by their dashed names (git clone PATH
116
+ # runs git-upload-pack on its other side), as upstream installs them.
117
+ FILE /usr/libexec/dolly/git-upload-pack
118
+ #!/bin/slop
119
+ exec git upload-pack "$@"
120
+ FILE /usr/libexec/dolly/git-receive-pack
121
+ #!/bin/slop
122
+ exec git receive-pack "$@"
123
+ FILE /usr/libexec/dolly/git-upload-archive
124
+ #!/bin/slop
125
+ exec git upload-archive "$@"
126
+ SLOP git init -q /tmp/git-check/origin && git -C /tmp/git-check/origin commit -q --allow-empty -m one && \
127
+ git clone -q /tmp/git-check/origin /tmp/git-check/clone && test "$(git -C /tmp/git-check/clone log --format=%s)" = one && \
128
+ git -C /tmp/git-check/clone commit -q --allow-empty -m two && git -C /tmp/git-check/clone push -q origin HEAD:pushed && \
129
+ test "$(git -C /tmp/git-check/origin log -1 --format=%s pushed)" = two
130
+ SLOP git --help > /usr/share/man/cat1/git.1
131
+
132
+ FOLDER /usr/share/git-core/templates
133
+ FILE /usr/share/licenses/git/COPYING
134
+ FILE /usr/share/man/cat1/git.1
135
+
136
+ # Dolly's diff and patch: git diff --no-index and git apply, for programs and
137
+ # build systems that run them.
138
+ SOURCE /dist/static/default/commands/run-program.h e73415ba149e8dcb9944313c36d8d2319202d699c810e02a26d5a94caa8f3a9f /tmp/git-tools/run-program.h
139
+ SOURCE /dist/static/default/commands/diff.c cda06a2a94c9d7c5f1ccab54f847011e35379f7cc452b7d4a0d7046ae61b7de9 /tmp/git-tools/diff.c
140
+ SOURCE /dist/static/default/commands/patch.c 7ba7566bff1486b706ff2d9d8863ddfeff4e17cdc0501c648dc41b96ff72dfb0 /tmp/git-tools/patch.c
141
+ SLOP cc -O2 /tmp/git-tools/diff.c -o /bin/diff
142
+ SLOP cc -O2 /tmp/git-tools/patch.c -o /bin/patch
143
+ EXPORTS TOOL diff
144
+ EXPORTS TOOL patch
145
+ SLOP diff --help > /usr/share/man/cat1/diff.1
146
+ SLOP patch --help > /usr/share/man/cat1/patch.1
147
+ FILE /usr/share/man/cat1/diff.1
148
+ FILE /usr/share/man/cat1/patch.1
149
+
150
+ SLOP rm \
151
+ -rf \
152
+ /tmp/git \
153
+ /tmp/git.tar \
154
+ /tmp/git-tools \
155
+ /usr/src/git
package/Dollyfile-gzip ADDED
@@ -0,0 +1,19 @@
1
+ DOLLY 8
2
+ PACKAGE gzip
3
+ REQUIRES HOST runtime@0
4
+
5
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
6
+ USE /Dollyfile-zlib acf8f8daaba24468b5b521bbb4d4ba3e034fe28d7a2d92fc680d2e39a1cea971
7
+
8
+ REQUIRES HEADER libc
9
+ REQUIRES HEADER zlib
10
+ REQUIRES LIB z
11
+ REQUIRES TOOL cc
12
+ REQUIRES TOOL rm
13
+
14
+ SOURCE /dist/static/default/commands/gzip.c 265a07fe3b66241718ed0f97fb9d72bee27da29109a55e1640f5f1d5be29a626 /tmp/gzip.c
15
+ SLOP cc /tmp/gzip.c -lz -o /bin/gzip
16
+ SLOP rm /tmp/gzip.c
17
+ EXPORTS TOOL gzip
18
+ SLOP gzip --help > /usr/share/man/cat1/gzip.1
19
+ FILE /usr/share/man/cat1/gzip.1
@@ -0,0 +1,24 @@
1
+ DOLLY 8
2
+ PACKAGE libdolly-display
3
+ REQUIRES HOST runtime@0
4
+
5
+ # The display@0 module's header and client (the terminal's surface and a
6
+ # program's frames), for programs the cc package builds: cc links every client
7
+ # archive in /usr/lib/dolly/process, and a program records display@0 only when
8
+ # it calls the client.
9
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
10
+ REQUIRES HEADER libc
11
+ REQUIRES TOOL ar
12
+ REQUIRES TOOL cc
13
+ REQUIRES TOOL rm
14
+
15
+ SOURCE /host/display/display.h c0e5a32282990529476ed705c82f39ce64bfd0dbcbcdfdccd3a8e8b6e84670a4 /usr/include/dolly/display.h
16
+ SOURCE /host/display/display-abi.h 94367a8498b31c51f4d930410fd68d36bbc3965f98c5e7e86f74a64d3760eed7 /usr/include/dolly/display-abi.h
17
+ SOURCE /host/display/client.c 8ebb4b6346302ee24fc6fd60c97a3e5ba8039b5bbd6764b60641087564387d02 /tmp/libdolly-display/client.c
18
+ SLOP cc -O1 -c /tmp/libdolly-display/client.c -o /tmp/libdolly-display/client.o
19
+ SLOP ar rcs /usr/lib/dolly/process/libdolly-display.a /tmp/libdolly-display/client.o
20
+
21
+ EXPORTS HEADER display /usr/include/dolly/display.h
22
+ EXPORTS HEADER display-abi /usr/include/dolly/display-abi.h
23
+ EXPORTS LIB dolly-display /usr/lib/dolly/process/libdolly-display.a
24
+ SLOP rm -rf /tmp/libdolly-display
@@ -0,0 +1,24 @@
1
+ DOLLY 8
2
+ PACKAGE libdolly-input
3
+ REQUIRES HOST runtime@0
4
+
5
+ # The input@0 module's header and client (keys, text, paste, pointer and
6
+ # wheel), for programs the cc package builds: cc links every client archive in
7
+ # /usr/lib/dolly/process, and a program records input@0 only when it calls the
8
+ # client.
9
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
10
+ REQUIRES HEADER libc
11
+ REQUIRES TOOL ar
12
+ REQUIRES TOOL cc
13
+ REQUIRES TOOL rm
14
+
15
+ SOURCE /host/input/input.h 1ade3d58496a192fb6385de483ab341f9e093ba4d1b8f196dc53c2c0efeb991c /usr/include/dolly/input.h
16
+ SOURCE /host/input/input-abi.h 1dde4a7087a3aebe9b57306f34d47c942fcd90dd9f2fbab1b977301cd78ae8fb /usr/include/dolly/input-abi.h
17
+ SOURCE /host/input/client.c 384c287c684156febe5d144f7d072df437bdfd0ce0f0f435e531918f1cdc2651 /tmp/libdolly-input/client.c
18
+ SLOP cc -O1 -c /tmp/libdolly-input/client.c -o /tmp/libdolly-input/client.o
19
+ SLOP ar rcs /usr/lib/dolly/process/libdolly-input.a /tmp/libdolly-input/client.o
20
+
21
+ EXPORTS HEADER input /usr/include/dolly/input.h
22
+ EXPORTS HEADER input-abi /usr/include/dolly/input-abi.h
23
+ EXPORTS LIB dolly-input /usr/lib/dolly/process/libdolly-input.a
24
+ SLOP rm -rf /tmp/libdolly-input
@@ -0,0 +1,24 @@
1
+ DOLLY 8
2
+ PACKAGE libdolly-pty
3
+ REQUIRES HOST runtime@0
4
+
5
+ # The pty@0 module's header and client (pseudo-terminals), for programs the cc
6
+ # package builds: cc links it when a program asks with -ldolly-pty, since it
7
+ # defines libc's openpty; so it is in /usr/lib, not among the clients cc links
8
+ # unasked (/usr/lib/dolly/process).
9
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
10
+ REQUIRES HEADER libc
11
+ REQUIRES TOOL ar
12
+ REQUIRES TOOL cc
13
+ REQUIRES TOOL rm
14
+
15
+ SOURCE /host/pty/pty.h 19659149489e27ccec526807bfebe90f1423440acaaa314bfacd711f6a70472d /usr/include/dolly/pty.h
16
+ SOURCE /host/pty/pty-abi.h e048f616d6b5bbc44caee1eeaba55f6bef7e2ffebfbabe58e3ac53322d7651d1 /usr/include/dolly/pty-abi.h
17
+ SOURCE /host/pty/client.c 3d657d3dad30591919a51c1c1004d4ffa965bb1ae7b8bef2366d502eac634070 /tmp/libdolly-pty/client.c
18
+ SLOP cc -O1 -c /tmp/libdolly-pty/client.c -o /tmp/libdolly-pty/client.o
19
+ SLOP ar rcs /usr/lib/libdolly-pty.a /tmp/libdolly-pty/client.o
20
+
21
+ EXPORTS HEADER pty /usr/include/dolly/pty.h
22
+ EXPORTS HEADER pty-abi /usr/include/dolly/pty-abi.h
23
+ EXPORTS LIB dolly-pty /usr/lib/libdolly-pty.a
24
+ SLOP rm -rf /tmp/libdolly-pty
@@ -0,0 +1,24 @@
1
+ DOLLY 8
2
+ PACKAGE libdolly-sockets
3
+ REQUIRES HOST runtime@0
4
+
5
+ # The sockets@0 module's header and client (local sockets between processes),
6
+ # for programs the cc package builds: cc links it when a program asks with
7
+ # -ldolly-sockets, since it defines libc's socket functions; so it is in
8
+ # /usr/lib, not among the clients cc links unasked (/usr/lib/dolly/process).
9
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
10
+ REQUIRES HEADER libc
11
+ REQUIRES TOOL ar
12
+ REQUIRES TOOL cc
13
+ REQUIRES TOOL rm
14
+
15
+ SOURCE /host/sockets/sockets.h 8abea9ccf861677d4dec5a222d048a6be691e8c7f6596d604dd601d44cb65eb3 /usr/include/dolly/sockets.h
16
+ SOURCE /host/sockets/sockets-abi.h d707a200164602165663283a79c2cd43d3932a330dac2dbeddd1e0ef87d7b158 /usr/include/dolly/sockets-abi.h
17
+ SOURCE /host/sockets/client.c e29d44bec8bab6f155446084096c2b79a34d5e61308e49a3a4587b5806b3f7aa /tmp/libdolly-sockets/client.c
18
+ SLOP cc -O1 -c /tmp/libdolly-sockets/client.c -o /tmp/libdolly-sockets/client.o
19
+ SLOP ar rcs /usr/lib/libdolly-sockets.a /tmp/libdolly-sockets/client.o
20
+
21
+ EXPORTS HEADER sockets /usr/include/dolly/sockets.h
22
+ EXPORTS HEADER sockets-abi /usr/include/dolly/sockets-abi.h
23
+ EXPORTS LIB dolly-sockets /usr/lib/libdolly-sockets.a
24
+ SLOP rm -rf /tmp/libdolly-sockets
package/Dollyfile-make ADDED
@@ -0,0 +1,11 @@
1
+ DOLLY 8
2
+ PACKAGE make
3
+ REQUIRES HOST runtime@0
4
+
5
+ # GNU Make as system-build compiles it, for a session that runs rules and
6
+ # compiles nothing: the cc package installs it.
7
+ FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb
8
+
9
+ EXPORTS TOOL make
10
+ FILE /usr/share/man/cat1/make.1
11
+ FILE /usr/share/licenses/make/COPYING