Skip to content

Installing crate2nix

Know what you are doing and want a stable version? Just use the version from nixpkgs.

Flake-enabled nix

Install from nixpkgs in user profile (recommended)
nix profile install nixpkgs#crate2nix
crate2nix help
Install latest development version
nix profile install github:nix-community/crate2nix
crate2nix help

Traditional (non-flake)

Install from nixpkgs (recommended)
nix-channel --update # if you wish
nix-env -i -f '<nixpkgs>' -A crate2nix
Install latest development version
nix-env -i -f https://github.com/nix-community/crate2nix/tarball/master