about summary refs log tree commit diff
path: root/pkgs/applications/misc/yubioath-flutter
diff options
context:
space:
mode:
authorhacker1024 <hacker1024@users.sourceforge.net>2023-04-15 19:52:12 +1000
committerhacker1024 <hacker1024@users.sourceforge.net>2023-04-15 20:17:44 +1000
commitc3a87421ae381ee68cd8f64f0be29616df8bdb25 (patch)
tree663a864b7afdc79add45cfef6e3f5170c81af22e /pkgs/applications/misc/yubioath-flutter
parentb187edb802c25abd103aa71eb7f00663e25333d4 (diff)
flutter: Don't tarball the package cache
Co-authored-by: FlafyDev <flafyarazi@gmail.com>

The dependency fixed-output derivation now uses the recursive hash mode to avoid tarballing and copying all the files.

https://github.com/NixOS/nix/issues/6660 was ran into during the development of this change. Input references were found in the Git package cache before nukeReferences was used.

It turns out that the mirrors in the Git package cache do not actually need to be preserved, as the SDK does not use them during the build process. They are therefore deleted in the dependency derivation and re-created as blank repositories in the main derivation.

A description of the Git package cache layout can be found here: https://github.com/dart-lang/pub/blob/c890afa1d65b340fa59308172029680c2f8b0fc6/lib/src/source/git.dart#L339
Diffstat (limited to 'pkgs/applications/misc/yubioath-flutter')
-rw-r--r--pkgs/applications/misc/yubioath-flutter/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/misc/yubioath-flutter/default.nix b/pkgs/applications/misc/yubioath-flutter/default.nix
index 3e2f8116a88dc..fc1d366fa6015 100644
--- a/pkgs/applications/misc/yubioath-flutter/default.nix
+++ b/pkgs/applications/misc/yubioath-flutter/default.nix
@@ -21,7 +21,7 @@ flutter.mkFlutterApp rec {
 
   passthru.helper = python3.pkgs.callPackage ./helper.nix { inherit src version meta; };
 
-  vendorHash = "sha256-/WP6oN5avAILZd3SkC/jmsqNL+BxdQGUjNwsjLF9RB4=";
+  vendorHash = "sha256-OU433z6Cz+jNJAjIiPO6cxySyejQ4SpSvuUHJsdT8TA=";
 
   postPatch = ''
     substituteInPlace linux/CMakeLists.txt \