Flakes/ru: Difference between revisions
 Updating to match new version of source page Tags: Mobile edit Mobile web edit  | 
				 Updating to match new version of source page  | 
				||
| Line 333: | Line 333: | ||
</div>  | </div>  | ||
<  | <syntaxhighlight lang="nix">  | ||
{ self, ... }@inputs:  | { self, ... }@inputs:  | ||
{  | {  | ||
| Line 346: | Line 346: | ||
     type = "app";  |      type = "app";  | ||
     program = "<store-path>";  |      program = "<store-path>";  | ||
    meta = {description = "..."; inherit otherMetaAttrs; };  | |||
   };  |    };  | ||
   # Executed by `nix run . -- <args?>`  |    # Executed by `nix run . -- <args?>`  | ||
   apps."<system>".default = { type = "app"; program = "..."; };  |    apps."<system>".default = { type = "app"; program = "..."; meta = {description = "..."; inherit otherMetaAttrs; }; };  | ||
   # Formatter (alejandra, nixfmt or nixpkgs-fmt)  |    # Formatter (alejandra, nixfmt, treefmt-nix or nixpkgs-fmt)  | ||
   formatter."<system>" = derivation;  |    formatter."<system>" = derivation;  | ||
   # Used for nixpkgs packages, also accessible via `nix build .#<name>`  |    # Used for nixpkgs packages, also accessible via `nix build .#<name>`  | ||
| Line 379: | Line 380: | ||
   templates.default = { path = "<store-path>"; description = ""; };  |    templates.default = { path = "<store-path>"; description = ""; };  | ||
}  | }  | ||
</  | </syntaxhighlight>  | ||
<div lang="en" dir="ltr" class="mw-content-ltr">  | <div lang="en" dir="ltr" class="mw-content-ltr">  | ||