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;
cargoBuildFlags = [ "--bin" "eww" ] ++ lib.optionals withWayland [
"--no-default-features"
"--features=wayland"
];
buildNoDefaultFeatures = withWayland;
buildFeatures = lib.optional withWayland "wayland";
cargoBuildFlags = [ "--bin" "eww" ];
cargoTestFlags = cargoBuildFlags;