stm32: use nativeBuildInputs correctly

This commit is contained in:
Sebastien Bourdeauducq 2020-10-08 14:32:36 +08:00
parent 9754f45904
commit 0064906c6f
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ let
rustPlatform = pkgs.recurseIntoAttrs (pkgs.callPackage ./rustPlatform.nix {
inherit rustManifest;
});
buildStm32Firmware = { name, src, patchPhase ? "", extraBuildInputs ? [], checkPhase ? "" }:
buildStm32Firmware = { name, src, patchPhase ? "", extraNativeBuildInputs ? [], checkPhase ? "" }:
let
cargoSha256Drv = pkgs.runCommand "${name}-cargosha256" { } ''cp "${src}/cargosha256.nix" $out'';
in
@ -20,7 +20,7 @@ let
cargoSha256 = (import cargoSha256Drv);
inherit patchPhase;
buildInputs = [ pkgs.llvm ] ++ extraBuildInputs;
nativeBuildInputs = [ pkgs.llvm ] ++ extraNativeBuildInputs;
buildPhase = ''
export CARGO_HOME=$(mktemp -d cargo-home.XXX)
cargo build --release
@ -59,7 +59,7 @@ in
humpback-dds = buildStm32Firmware {
name = "humpback-dds";
src = <humpbackDdsSrc>;
extraBuildInputs = [
extraNativeBuildInputs = [
(pkgs.python3.withPackages(ps: [ migen ]))
pkgs.yosys
pkgs.nextpnr