<function>makeSnap</function> takes a single named argument, <parameter>meta</parameter>. This argument mirrors <linkxlink:href="https://docs.snapcraft.io/snap-format">the upstream <filename>snap.yaml</filename> format</link> exactly.
<command>nix-build</command> this expression and install it with <command>snap install ./result --dangerous</command>. <command>hello</command> will now be the Snapcraft version of the package.
Graphical programs require many more integrations with the host. This example uses Firefox as an example, because it is one of the most complicated programs we could package.
<command>nix-build</command> this expression and install it with <command>snap install ./result --dangerous</command>. <command>nix-example-firefox</command> will now be the Snapcraft version of the Firefox package.
The specific meaning behind plugs can be looked up in the <linkxlink:href="https://docs.snapcraft.io/supported-interfaces">Snapcraft interface documentation</link>.