From 3e87d33c078f7378ed1c74fa38e88e3bac7c7c00 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 10 Feb 2023 21:01:32 +0000 Subject: [PATCH] flipperzero-firmware: update to RM0209-2252-0.76.1-dcbe3cd --- nix/pkgs/flipperzero-firmware/default.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/nix/pkgs/flipperzero-firmware/default.nix b/nix/pkgs/flipperzero-firmware/default.nix index 85fdbe03cb..071f15188d 100644 --- a/nix/pkgs/flipperzero-firmware/default.nix +++ b/nix/pkgs/flipperzero-firmware/default.nix @@ -1,4 +1,5 @@ -{ pkgs ? import {} +{ depot +, pkgs ? import {} , ... }: let @@ -49,13 +50,14 @@ let in pkgs.stdenvNoCC.mkDerivation rec { pname = "flipper-firmware"; - version = "RM0114-1253-0.75.1-b873a59"; + version = "RM0209-2252-0.76.1-dcbe3cd"; + upstreamVersion = "0.76.1"; src = pkgs.fetchgit { url = "https://github.com/RogueMaster/flipperzero-firmware-wPlugins.git"; - rev = "b873a591e2af417adc14921b457230e397ca97fb"; + rev = "dcbe3cd255bc2c2d5da9d3f2859a11f45d8bc2d4"; fetchSubmodules = true; - sha256 = "1xnyj0xvlpf6vd0d31vgr6rszzy6vvm0yybb20m6vqzf23h2yfcl"; + sha256 = "1zs10b9rxbbxcwv9r28q8vyx3jkkg71mg4xfpf18zmkzj3wczaiv"; }; patches = [ @@ -100,4 +102,14 @@ pkgs.stdenvNoCC.mkDerivation rec { ''; passthru.deps = deps; + passthru.upload = let + firmware = depot.nix.pkgs.flipperzero-firmware; + in pkgs.writeShellApplication { + name = "upload-f0"; + runtimeInputs = [ pkgs.google-cloud-sdk ]; + text = '' + echo "Uploading ${firmware.version}" + gcloud storage cp "${firmware}/f7-C/*-update-*.tgz" "gs://lukegb-flipperzero/${firmware.name}.tgz" + ''; + }; }