forked from M-Labs/thermostat
default.nix: replace $BIN with ${firmwareBinary}
This commit is contained in:
parent
cbfe3a177b
commit
4a334465da
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user