Jump to content

Template:Nixpkg

From NixOS Wiki

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