diff --git a/dev/tests/eval-tests.nix b/dev/tests/eval-tests.nix index cd57fba..35226ce 100644 --- a/dev/tests/eval-tests.nix +++ b/dev/tests/eval-tests.nix @@ -165,12 +165,14 @@ rec { hello = { program = "${pkg "a" "hello"}/bin/hello"; type = "app"; + meta = { }; }; }; b = { hello = { program = "${pkg "b" "hello"}/bin/hello"; type = "app"; + meta = { }; }; }; }; diff --git a/modules/apps.nix b/modules/apps.nix index 1171dcf..2f30a77 100644 --- a/modules/apps.nix +++ b/modules/apps.nix @@ -34,6 +34,17 @@ let A path to an executable or a derivation with `meta.mainProgram`. ''; }; + meta = mkOption { + type = types.lazyAttrsOf lib.types.raw; + default = { }; + # TODO refer to Nix manual 2.25 + description = '' + Metadata information about the app. + Standardized in Nix at . + + Note: `nix flake check` is only aware of the `description` attribute in `meta`. + ''; + }; }; }; in