default.nix: replace $BIN with ${firmwareBinary}

This commit is contained in:
Astro 2019-04-05 23:13:49 +02:00
parent cbfe3a177b
commit 4a334465da
1 changed files with 1 additions and 2 deletions

View File

@ -37,8 +37,7 @@ stdenv.mkDerivation {
in ''
mkdir -p $out/bin $out/lib $out/nix-support
BIN=$out/lib/adc2tcp
ln -s ${adc2tcp}/lib/adc2tcp $BIN
ln -s ${adc2tcp}/lib/adc2tcp ${firmwareBinary}
makeWrapper ${openocd}/bin/openocd-nucleo-f429zi $out/bin/flash-adc2tcp \
--add-flags "${lib.escapeShellArgs openOcdFlags}"