From b842370266838d658fc39afbbf65bef5e5b57f7b Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 28 Aug 2022 20:58:32 +0100 Subject: [PATCH] nix/pkgs/flipperzero-firmware: I continue to hate this --- nix/pkgs/flipperzero-firmware/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nix/pkgs/flipperzero-firmware/default.nix b/nix/pkgs/flipperzero-firmware/default.nix index d2b03513ac..7e23009710 100644 --- a/nix/pkgs/flipperzero-firmware/default.nix +++ b/nix/pkgs/flipperzero-firmware/default.nix @@ -41,14 +41,17 @@ pkgs.stdenvNoCC.mkDerivation rec { pname = "flipper-firmware"; version = "0.65.3-0827-RMv2"; - src = pkgs.fetchFromGitHub { - owner = "RogueMaster"; - repo = "flipperzero-firmware-wPlugins"; + src = (pkgs.fetchgit { + url = "https://github.com/RogueMaster/flipperzero-firmware-wPlugins.git"; rev = version; fetchSubmodules = true; leaveDotGit = true; - sha256 = "1vvyrp1jai3l0cjhscqnp8zyw2hn6qkqjpq93gsryjhg615hxmj4"; - }; + sha256 = "1ch9fwkl00db3m57iz5xykk2zkd9cvg4h1msspni7ghvqnjmiy9v"; + }).overrideAttrs (_: { + NIX_PREFETCH_GIT_CHECKOUT_HOOK = '' + find "$dir" -mindepth 2 -name .git -print0 | xargs -0 rm -rf + ''; + }); patches = [ ./fbt_assets_protobuf_version_from_changelog.patch