Jump to content

Template:Nixpkg: Difference between revisions

From NixOS Wiki
Malix (talk | contribs)
Duplicates: Template:Nixpkgs Link
Malix (talk | contribs)
m fix
Tag: Manual revert
 
Line 1: Line 1:
{{merge|scope=template|Template:Nixpkgs Link|reason=They seem to be duplicates.}}
<includeonly>[https://github.com/NixOS/nixpkgs/blob/{{{rev|{{{revision|master}}}}}}/{{{1}}} {{unicon|📦}}&nbsp;{{{2|{{{1}}}}}}]</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>[https://github.com/NixOS/nixpkgs/blob/{{{rev|{{{revision|master}}}}}}/{{{1}}} {{unicon|📦}}&nbsp;{{{2|{{{1}}}}}}]</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 14:15, 16 August 2025

Template Documentation [edit source| uses| help]

⤟︎
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