Nix's git filter-branch is broken due to missing deps on grep and sed, the forked version I've pinned to fixes that (it's based off 1b57bf274a, which at the time of this commit is the current channel revision).