nixpkgs-suyu/doc/builders/images/snap/example-hello.nix
2019-10-21 10:57:56 +02:00

12 lines
308 B
Nix

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";
};
}