xxv: use buildFeatures
This commit is contained in:
parent
c07e2bf52e
commit
0b95da3474
|
@ -25,7 +25,8 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
# I'm picking pancurses for Windows simply because that's the example given in Cursive's
|
# 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.
|
# 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; {
|
meta = with lib; {
|
||||||
description = "A visual hex viewer for the terminal";
|
description = "A visual hex viewer for the terminal";
|
||||||
|
|
Loading…
Reference in a new issue