diff options
Diffstat (limited to 'doc/builders/images/snap/example-hello.nix')
-rw-r--r-- | doc/builders/images/snap/example-hello.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/builders/images/snap/example-hello.nix b/doc/builders/images/snap/example-hello.nix new file mode 100644 index 0000000000000..123da80c54775 --- /dev/null +++ b/doc/builders/images/snap/example-hello.nix @@ -0,0 +1,12 @@ +let + inherit (import <nixpkgs> { }) snapTools hello; +in snapTools.makeSnap { + meta = { + name = "hello"; + summary = hello.meta.description; + description = hello.meta.longDescription; + architectures = [ "amd64" ]; + confinement = "strict"; + apps.hello.command = "${hello}/bin/hello"; + }; +} |