diff --git a/pkgs/tools/misc/xxv/default.nix b/pkgs/tools/misc/xxv/default.nix index 99a8193c6ca7..e5852e5f51b0 100644 --- a/pkgs/tools/misc/xxv/default.nix +++ b/pkgs/tools/misc/xxv/default.nix @@ -25,7 +25,8 @@ rustPlatform.buildRustPackage rec { # I'm picking pancurses for Windows simply because that's the example given in Cursive's # documentation for picking an alternative backend. We could just as easily pick crossterm. - cargoBuildFlags = lib.optionals (!useNcurses) [ "--no-default-features" "--features pancurses-backend" ]; + buildNoDefaultFeatures = !useNcurses; + buildFeatures = lib.optional (!useNcurses) "pancurses-backend"; meta = with lib; { description = "A visual hex viewer for the terminal";