mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 09:51:36 +03:00
b3901ab42f
git-subtree-dir: pkg/arvo git-subtree-mainline:9c8f40bf6c
git-subtree-split:c20e2a185f
37 lines
805 B
Plaintext
37 lines
805 B
Plaintext
::
|
|
:::: /hoon/pill/mar
|
|
::
|
|
/- aquarium
|
|
=, aquarium
|
|
=, mimes:html
|
|
|_ pil=pill
|
|
++ grow
|
|
|%
|
|
++ mime [/application/octet-stream (as-octs (jam pil))]
|
|
--
|
|
++ grab
|
|
|%
|
|
++ noun pill
|
|
++ mime
|
|
|= [p=mite:eyre q=octs:eyre]
|
|
=+ o=(pair ,* ,*) :: ,*)
|
|
=+ (,[boot-ova=* kernel-ova=(list o) userspace-ova=(list o)] (cue q.q))
|
|
=/ convert
|
|
|= ova=(list o)
|
|
^- (list unix-event)
|
|
%+ turn ova
|
|
|= ovo=o
|
|
=/ sof ((soft unix-event) ovo)
|
|
?~ sof
|
|
~& [%unknown-event p.ovo]
|
|
!!
|
|
~& [%known-event (wire p.ovo) (@tas -.q.ovo)]
|
|
u.sof
|
|
:: =/ boot-ova (convert boot-ova)
|
|
=/ kernel-ova (convert kernel-ova)
|
|
=/ userspace-ova (convert userspace-ova)
|
|
[boot-ova kernel-ova userspace-ova]
|
|
--
|
|
++ grad %mime
|
|
--
|