make nix patch work for fresher nix versions