lukegbcom: add link to flipperzero firmware
This commit is contained in:
parent
edd1e5f944
commit
8f592e9aa1
2 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ depot, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
nodejs = pkgs.nodejs-16_x;
|
nodejs = pkgs.nodejs-16_x;
|
||||||
|
@ -21,6 +21,15 @@ pkgs.stdenv.mkDerivation {
|
||||||
"result*"
|
"result*"
|
||||||
] ./.;
|
] ./.;
|
||||||
buildInputs = [ nodejs ];
|
buildInputs = [ nodejs ];
|
||||||
|
postPatch = let
|
||||||
|
f0Firmware = depot.nix.pkgs.flipperzero-firmware;
|
||||||
|
in ''
|
||||||
|
sed -i \
|
||||||
|
-e 's/__FLIPPER_FIRMWARE_NAME__/${f0Firmware.name}/g' \
|
||||||
|
-e 's/__FLIPPER_FIRMWARE_VERSION__/${f0Firmware.version}/g' \
|
||||||
|
-e 's/__FLIPPER_UPSTREAM_VERSION__/${f0Firmware.upstreamVersion}/g' \
|
||||||
|
pages/tools.js
|
||||||
|
'';
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
ln -s ${nodeDependencies}/lib/node_modules ./node_modules
|
ln -s ${nodeDependencies}/lib/node_modules ./node_modules
|
||||||
export PATH="${nodeDependencies}/bin:$PATH"
|
export PATH="${nodeDependencies}/bin:$PATH"
|
||||||
|
|
|
@ -27,6 +27,9 @@ export default function Toolbox() {
|
||||||
<li>
|
<li>
|
||||||
<Link href="/tools/ee-qrcode"><a>EE QRCode Mangler</a></Link>
|
<Link href="/tools/ee-qrcode"><a>EE QRCode Mangler</a></Link>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link href="https://storage.googleapis.com/lukegb-flipperzero/__FLIPPER_FIRMWARE_NAME__.tgz">Flipper Zero Firmware __FLIPPER_FIRMWARE_VERSION__</Link> (<Link href="https://lab.flipper.net/?url=https://storage.googleapis.com/lukegb-flipperzero/__FLIPPER_FIRMWARE_NAME__.tgz&channel=__FLIPPER_FIRMWARE_VERSION__&version=__FLIPPER_UPSTREAM_VERSION__">web flasher</Link>)
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Reference in a new issue