nixpkgs/doc/builders/images/snap/example-hello.nix

13 lines
308 B
Nix
Raw Normal View History

2019-06-18 16:51:58 +00:00
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";
};
}