Nix
Setup for macOS to install all things needed to be used as a development machine. No homebrew needed! Link to my personal config
Reinstalling packages
nix run nix-darwin -- switch --flake ~/.config/nix-darwin
Updating packages
nix flake update
Formatting nix files
nixpkgs-fmt *.nix
Cargo binaries in shell
By default there is no way to install cargo packages from only a url. Example workaround: Add the new package and make up a sha256 hash for git and cargo, rerun install and replace with the actual hash.
(pkgs.callPackage
(pkgs.fetchFromGitHub {
owner = "enricozb";
repo = "symbol-search.kak";
rev = "v0.4.3";
sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
})
{ }
)