Template:Nixpkgs Link: Difference between revisions

From NixOS Wiki
Sdht0 (talk | contribs)
Add proper sections
Sdht0 (talk | contribs)
Fix typo
Line 5: Line 5:


== Usage ==
== Usage ==
== Examples ==
* {{ic|<nowiki>{{Nixpkgs Link|pkgs/top-level/all-packages.nix}}</nowiki>}}
* {{ic|<nowiki>{{Nixpkgs Link|pkgs/top-level/all-packages.nix}}</nowiki>}}
* {{ic|<nowiki>{{Nixpkgs Link|short=all-packages.nix|pkgs/top-level/all-packages.nix}}</nowiki>}}
* {{ic|<nowiki>{{Nixpkgs Link|short=all-packages.nix|pkgs/top-level/all-packages.nix}}</nowiki>}}

Revision as of 20:35, 6 April 2024


About

Creates a link to a file in the Nixpkgs repo.

Usage

  • {{Nixpkgs Link|pkgs/top-level/all-packages.nix}}
  • {{Nixpkgs Link|short=all-packages.nix|pkgs/top-level/all-packages.nix}}
  • {{Nixpkgs Link|pkgs/top-level/all-packages.nix|revision=f3ecd570ed68a801ff7f1522319d4fa5caf774c5}}

Examples