Jump to content

Template:Nixpkg/Doc: Difference between revisions

From NixOS Wiki
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..."
 
Malix (talk | contribs)
m fix
 
Line 1: Line 1:
{{merge|scope=template|Template:Nixpkgs Link|reason=They seem to be duplicates.}}
This template inserts a link to a file in the nixpkgs repository.
This template inserts a link to a file in the nixpkgs repository.



Latest revision as of 14:14, 16 August 2025

⤟︎
This template is a candidate for merging with Template:Nixpkgs Link. They seem to be duplicates. Further information may be found in the relevant discussion page.

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