templates: fix flake application module

This commit is contained in:
ooks-io 2025-01-06 13:18:19 +11:00
parent 45b6a907fb
commit c2d52a2683

View file

@ -2,8 +2,11 @@
perSystem = { perSystem = {
pkgs, pkgs,
self', self',
lib,
... ...
}: { }: let
inherit (lib) getExe;
in {
packages.default = pkgs.stdenvNoCC.mkDerivation { packages.default = pkgs.stdenvNoCC.mkDerivation {
pname = "my package"; pname = "my package";
version = "0.1.0"; version = "0.1.0";
@ -13,6 +16,9 @@
buildPhase = ""; buildPhase = "";
dontInstall = true; dontInstall = true;
}; };
apps.default = self'.packages.default; apps.default = {
type = "app";
program = "${getExe self'.packages.default}";
};
}; };
} }