makes icon indicating copy to clipboard operation
makes copied to clipboard

available fetchers are not ok

Open kamadorueda opened this issue 4 years ago • 2 comments

fetchers on Nix are not perfect

  • builtins.fetchgit, does not bootstrap git, so you have to install it on the target host (happened to me in the past, using nixpkgs.fetchgit was the solution)
  • builtins.fetchurl, does fail on large downloads or unstable networks, the output might not be the hash you want from time to time, probably from wrongly handled retries or keep-alive packets, (happened to me in the past, using nixpkgs.fetchurl was the solution)
  • nixpkgs.fetch* are not local, which means they end up in the binary cache (a CDN) instead of downloading from the main CDN directly, which causes extra lookups and therefore extra build time when multiplied by thousands of downloads (happened to us in the past, around 5-10 minutes lost just Nix checking if X is in cache Y)

so, let's explore what we can do to prevent the mentioned problems

kamadorueda avatar Sep 22 '21 19:09 kamadorueda

also: nix itself not parallelizing bin cache look-ups is not ok. /cc @nrdxp

blaggacao avatar Sep 23 '21 02:09 blaggacao

incidentally, I was just wondering the potential difficulty of injecting a tokio runtime so I could leverage its select macro directly into the Nix binary :sweat_smile:

nrdxp avatar Sep 23 '21 14:09 nrdxp