legacy-old-hercules icon indicating copy to clipboard operation
legacy-old-hercules copied to clipboard

Deterministic bootstrapping

Open taktoa opened this issue 7 years ago • 5 comments

In pkgs.nix you can use the deterministic bootstrapping style described in https://github.com/NixOS/nix/issues/1299#issuecomment-316842769 to prevent the user from having to redownload the tarball hourly.

taktoa avatar Jul 20 '17 22:07 taktoa

I also like the trick from https://github.com/NixOS/nix/issues/1528, which seems a little nicer to me.

aneeshusa avatar Sep 17 '17 23:09 aneeshusa

sure, though that requires a git submodule containing the relevant nixpkgs revision

taktoa avatar Sep 18 '17 00:09 taktoa

Until Nix 1.12 is released I guess it's best to use https://github.com/input-output-hk/iohk-ops/blob/staging/fetch-nixpkgs.nix

domenkozar avatar Sep 19 '17 09:09 domenkozar

@domenkozar I find it likely that that file was written after I conversation I had with @cleverca22 this summer (i.e.: it's probably equivalent to the gist in that comment)

taktoa avatar Sep 19 '17 09:09 taktoa

Yeah, it goes around also by @zimbatm at https://github.com/numtide/todomvc-nix/commit/f3c7c35b00dc0c5897a08531e5902e09110aeb1a

domenkozar avatar Sep 19 '17 09:09 domenkozar