nix-build
Nixのderivationをbuildする
https://nixos.org/manual/nix/unstable/command-ref/nix-build.html
https://nixos.wiki/wiki/Nix_command/build
「Nixのderivationをbuildする」とは以下の2つのことを行っている
nix-instantiate
.nixのparseとevaluateをして、store derivationを作る
nix-store -r
.drvを元にbuildしてproductをinstallする
というか、Binaryを作る過程かな #??
いやbinary作るかどうかはnix-buildの知ったところではない
build生成物がどうなるかは物によって異なるだろう
commands
$ nix-build
default.nixをbuildする
$ nix-build hoge.nix
hoge.nixをbuildする
$ nix build <FLAGS..> <INSTALLABLES..>
shell.nixをbuildする
https://nixos.wiki/wiki/Caching_nix_shell_build_inputs
https://github.com/cachix/cachix/issues/52