This doesn't fix the cross-build by itself due to https://github.com/NixOS/nixpkgs/issues/14965 But in this case one can hack around that "easily" by: (html-tidy.override { inherit (/*non-cross nixpkgs eval*/) cmake; }).crossDrv