mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
xxv: use buildFeatures
This commit is contained in:
parent
c07e2bf52e
commit
0b95da3474
1 changed files with 2 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue