avrdude: turn on SPI support on Linux

This commit is contained in:
Philip Taron 2024-04-11 11:42:16 -07:00
parent 837069946a
commit 84604bb80d
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -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 ''