From b43d700922b7257cf87235a762f4a4b9cb023e1f Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 15 Nov 2021 19:39:41 -0500 Subject: [PATCH] cargo-embed: use buildFeatures --- pkgs/development/tools/rust/cargo-embed/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/rust/cargo-embed/default.nix b/pkgs/development/tools/rust/cargo-embed/default.nix index 2af012956c1a..80a8195d77eb 100644 --- a/pkgs/development/tools/rust/cargo-embed/default.nix +++ b/pkgs/development/tools/rust/cargo-embed/default.nix @@ -25,7 +25,7 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ pkg-config rustfmt ]; buildInputs = [ libusb1 libftdi1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; - cargoBuildFlags = [ "--features=ftdi" ]; + buildFeatures = [ "ftdi" ]; meta = with lib; { description = "A cargo extension for working with microcontrollers";