flutter: Deregister the Pub dependencies artifact

There is no need to cache the flutter_tool pub dependencies, as it is built reproducibly with Nix.

authored by hacker1024 and committed by Maciej Krüger 59493e57 b63ffdda

+19
+19
pkgs/development/compilers/flutter/patches/flutter3/deregister-pub-dependencies-artifact.patch
···
··· 1 + diff --git a/packages/flutter_tools/lib/src/flutter_cache.dart b/packages/flutter_tools/lib/src/flutter_cache.dart 2 + index 252021cf78..e50ef0885d 100644 3 + --- a/packages/flutter_tools/lib/src/flutter_cache.dart 4 + +++ b/packages/flutter_tools/lib/src/flutter_cache.dart 5 + @@ -51,14 +51,6 @@ class FlutterCache extends Cache { 6 + registerArtifact(IosUsbArtifacts(artifactName, this, platform: platform)); 7 + } 8 + registerArtifact(FontSubsetArtifacts(this, platform: platform)); 9 + - registerArtifact(PubDependencies( 10 + - logger: logger, 11 + - // flutter root and pub must be lazily initialized to avoid accessing 12 + - // before the version is determined. 13 + - flutterRoot: () => Cache.flutterRoot!, 14 + - pub: () => pub, 15 + - projectFactory: projectFactory, 16 + - )); 17 + } 18 + } 19 +