nix: use shallow-fetchgit and make put-metric a static binary