eww: use buildFeatures

This commit is contained in:
figsoda 2021-11-15 19:03:01 -05:00
parent 8ec1bb1b46
commit 7303def464

View file

@ -25,10 +25,10 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ gtk3 ] ++ lib.optional withWayland gtk-layer-shell; buildInputs = [ gtk3 ] ++ lib.optional withWayland gtk-layer-shell;
cargoBuildFlags = [ "--bin" "eww" ] ++ lib.optionals withWayland [ buildNoDefaultFeatures = withWayland;
"--no-default-features" buildFeatures = lib.optional withWayland "wayland";
"--features=wayland"
]; cargoBuildFlags = [ "--bin" "eww" ];
cargoTestFlags = cargoBuildFlags; cargoTestFlags = cargoBuildFlags;