infinisil changed the topic of #nix-lang to: Channel for discussing Nix as a language - https://nixos.org/nix/manual/#chap-writing-nix-expressions - Logs: https://logs.nix.samueldr.com/nix-lang/
Dotz0cat has quit [Ping timeout: 258 seconds]
rajivr has joined #nix-lang
Dotz0cat has joined #nix-lang
__monty__ has joined #nix-lang
<ris> today's surprise: builtins fetchTarball uses the `tar` and `gzip` on your current PATH
<infinisil> Yeah.. and fetchGit uses the git on path
rajivr has quit [Quit: Connection closed for inactivity]
<__monty__> My understanding is the builtins fetchers are weird because bootstrapping and they also have the disadvantage they always need to fetch or something or is that the ones in lib? I seem to remember something funky.
<sterni> they do cache the result if you specify an output / commit hash
<sterni> I don't think lib has any fetchers?
<V> no, there's just builtins + pkgs/build-support, the latter which is obviously only available after bootstrapping
<__monty__> Oh, I thought it was lib.fetchFromGitHub?
<infinisil> Nix could bundle all its dependencies with the installation
<infinisil> `wrapProgram $out/bin/nix --suffix PATH : ${makeBinPath [ git gnutar ... ]}`
<V> __monty__: nope. pkgs.fetchFromGitHub