pub2nix: Add disclaimer why not to use fetchTarball

This commit is contained in:
FlafyDev 2023-12-26 21:54:30 +02:00
parent b0a2d432da
commit 65b0c270c2

View file

@ -48,6 +48,8 @@ let
(lib.genAttrs (builtins.attrValues dependencyTypes) (dependencyType: [ ]))
pubspecLock.packages;
# fetchTarball fails with "tarball contains an unexpected number of top-level files". This is a workaround.
# https://discourse.nixos.org/t/fetchtarball-with-multiple-top-level-directories-fails/20556
mkHostedDependencySource = name: details:
let
archive = fetchurl {