Add support for building on nix