3 ms·
As long as you can track down a source-file with the same sha, you can reproduce the build. I've had very old nix expressions fail to build after clearing my c
by aidenn0 5y ago
As long as you can track down a source-file with the same sha, you can reproduce the build. I've had very old nix expressions fail to build after clearing my cache, but it was usually fixed fairly simply by changing a URL from http://example.com/release/foo-x.y.z.tgz http://example.com/release/foo-x.y.z.tgz to http://example.com/archive/foo-x.y.z.tgz http://example.com/archive/foo-x.y.z.tgz
When that wasn't doable, I could google the name of the .tgz file, download a couple and find the one with the matching hash, drop the .tgz inside the directory and change the source to a relative path. Actually I do this even in the "release -> archive" case because "Move a URL once, shame on you. Move it twice, shame on me."
[edit]
If you really don't want to change the .nix expression, you can manually add the file to the cache, and things will Just Work.