about summary refs log tree commit diff
path: root/nixpkgs/doc/functions/snap/example-hello.nix
blob: 123da80c5477583b1f9301f3dba9fa65f9494e5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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";
  };
}