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