website/docs/installation/nix.md
If you are using Nix, git-cliff can be installed from the official latest stable channel.
To temporarily install git-cliff in a shell environment, run:
nix-shell -p git-cliff
To install git-cliff permanently, use:
nix-env -iA nixpkgs.git-cliff
:::warning
Using nix-env permanently modifies a local profile of installed packages. This must be updated and maintained by the user in the same way as with a traditional package manager, foregoing many of the benefits that make Nix uniquely powerful. Using nix-shell or a NixOS configuration is recommended instead.
:::
If you're using the new experimental CLI, you can use any of the following:
nix runnix run nixpkgs#git-cliff
nix shellTo open a new shell with git-cliff available, use:
nix shell nixpkgs#git-cliff
While new releases of git-cliff typically become available in the stable channel relatively quickly, you can use the unstable channel if you want to access the latest features and updates sooner.
To add and update the unstable channel, run:
nix-channel --add https://nixos.org/channels/nixpkgs-unstable
nix-channel --update nixpkgs
After updating to the unstable channel, you can use any of the previous installation commands to install git-cliff.