Nix
1
# Build nix package locally.
2
​
3
# cd into cloned https://github.com/NixOS/nixpkgs
4
​
5
# Build package from default.nix inside nixpkgs. Will put result as ./result if succeeds
6
# i.e. nix-build -A watchexec -> will build watchexec package
7
nix-build -A <package>
8
​
9
# Install the build and put it `~/.nix-profile/bin`
10
nix-env -i ./result
Copied!
1
# Garbage collect
2
sudo nix-collect-garbage --delete-older-than 30d
Copied!
Last modified 1yr ago
Copy link