Jump to content

Template:Nixpkg/Doc

From NixOS Wiki
Revision as of 20:33, 7 June 2025 by DoggoBit (talk | contribs) (Created page with "This template inserts a link to a file in the nixpkgs repository. {{nixpkg|pkgs/by-name/me/mediawiki/package.nix}} === Usage === Simply paste the full path of the file that you want to link to. The link above was created using: {{code|lang=mediawiki|line=no|<nowiki>{{nixpkg|pkgs/by-name/me/mediawiki/package.nix}}</nowiki>}} You can also provide some text to be filled in instead of the full path: {{code|lang=mediawiki|line=no|<nowiki>{{nixpkg|pkgs/top-level/all-pack...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template inserts a link to a file in the nixpkgs repository.

📦︎ pkgs/by-name/me/mediawiki/package.nix

Usage

Simply paste the full path of the file that you want to link to. The link above was created using:

{{nixpkg|pkgs/by-name/me/mediawiki/package.nix}}

You can also provide some text to be filled in instead of the full path:

{{nixpkg|pkgs/top-level/all-packages.nix|all-packages.nix}}

📦︎ all-packages.nix

Finally, you can point to a specific revision of the repository too:

{{nixpkg|rev=f3ecd570ed68a801ff7f1522319d4fa5caf774c5|pkgs/top-level/all-packages.nix}}

📦︎ pkgs/top-level/all-packages.nix