From 0d9a580acb013c406a91ee190dc210ef63630632 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 20 Apr 2022 23:04:22 +0200 Subject: [PATCH] expose app as application --- flake.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index 1880986..222db55 100644 --- a/flake.nix +++ b/flake.nix @@ -56,5 +56,11 @@ # flake provides only one package or there is a clear "main" # package. defaultPackage = forAllSystems (system: self.packages.${system}.go-hello); + + defaultApp = forAllSystems (system: { + type = "app"; + program = "${self.packages.${system}.go-hello}/bin/go-hello"; + }); + }; }