diff options
author | Philip Taron <philip.taron@gmail.com> | 2024-04-11 11:42:16 -0700 |
---|---|---|
committer | Philip Taron <philip.taron@gmail.com> | 2024-04-15 09:21:43 -0700 |
commit | 84604bb80de8e6909df4eba2bd00ebb0ac303296 (patch) | |
tree | 4794862c794ff3c6a461b7e4b8c2789878b514fe | |
parent | 837069946a05dc39943fc8500623774c9b4c7d04 (diff) |
avrdude: turn on SPI support on Linux
-rw-r--r-- | pkgs/development/embedded/avrdude/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/development/embedded/avrdude/default.nix b/pkgs/development/embedded/avrdude/default.nix index 68b819e38c6b4..31f6f26496e24 100644 --- a/pkgs/development/embedded/avrdude/default.nix +++ b/pkgs/development/embedded/avrdude/default.nix @@ -26,9 +26,8 @@ stdenv.mkDerivation rec { buildInputs = [ hidapi libusb1 libelf libftdi1 libserialport readline ]; - cmakeFlags = lib.optionals docSupport [ - "-DBUILD_DOC=ON" - ]; + cmakeFlags = lib.optionals stdenv.hostPlatform.isLinux [ "-DHAVE_LINUXSPI=ON" ] + ++ lib.optionals docSupport [ "-DBUILD_DOC=ON" ]; # dvips output references texlive in comments, resulting in a huge closure postInstall = lib.optionalString docSupport '' |