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

This commit is contained in:
Astro 2019-04-05 23:13:49 +02:00
parent cbfe3a177b
commit 4a334465da

View File

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