diff --git a/pkgs/vesc-tool/firmware.nix b/pkgs/vesc-tool/firmware.nix index 0f84683..f2c31dd 100644 --- a/pkgs/vesc-tool/firmware.nix +++ b/pkgs/vesc-tool/firmware.nix @@ -24,13 +24,15 @@ stdenv.mkDerivation { ]; buildCommand = '' + set -x cp -r $src bldc ( cd bldc chmod +w . - #make all_fw_package - make fw_410 + make fw_410 fw_60 ) - cp -r bldc/build/* $out + mkdir -p $out + find bldc + cp --target-directory=$out --recursive bldc/build/*/*.{bin,hex} ''; } diff --git a/pkgs/vesc-tool/tool.nix b/pkgs/vesc-tool/tool.nix index 0b3a1c1..4043910 100644 --- a/pkgs/vesc-tool/tool.nix +++ b/pkgs/vesc-tool/tool.nix @@ -12,6 +12,7 @@ let 410.bin + 60.bin '';