News for hackers. Stuff that matters.
Re:The Curse of NixOS by fwip on Monday January 24, 2022 @06:25PM (#30065600)
I've never understood why Nix cannot simply rewrite those paths to "look like" the canonical ones when calculating hashes. Surely a pre-processing rule could transform "/home/me/nix" to "/nix", based on my Nix configuration.
Re:The Curse of NixOS by tadfisher on Tuesday January 25, 2022 @03:28PM (#30077588)
Again, purity. Changing the inputs (the derivation with all its referenced paths) would result in the same hash output, and someone substituting your package from a binary cache would receive a package that doesn't work on their system, yet matches the expected hash.
Re:The Curse of NixOS by fwip on Thursday February 03, 2022 @08:00PM (#30201414)
I don't want to publish packages to a binary cache. I just want to install a package somewhere other than /nix.