Closed FirelightFlagboy closed 11 months ago
Same here
Hmm maybe we can package anyrun in nixpkgs?
I have been experiencing the same for a while now, most likely my fault why it's like this. I'll take a look at fixing this.
Hello @NotAShelf, I didn't take a look at this issue since it has been fixed.
If I understand correctly, the fix provide a cached build for those who have configured substituters
to use anyrun.cachix.org
but does that also require to follow the same nixpkgs-unstable
revision ?
Regards
hey @FirelightFlagboy
using the binary cache does not require you to follow the same nixpkgs-unstable revision, as the binary will be pulled from the cache directly and not build
as a rule of thumb, you should not follow any inputs in packages that you intend to pull from a cache, as that will cause a hash mismatch between your system and the cache - which means you will not be able to pull and have to build locally
I'm still having issue with the cache.
Nix (trough home-manager
) is using the substitute anyrun.cachix.org
because when I do
home-manager switch --flake '.#redacted' --verbose --dry-run
I see
copying path '/nix/store/a5spqvgdp4qxhz4arxxn2374jv0r7acv-source' from 'https://anyrun.cachix.org'...
But just after that:
these 6 derivations will be built:
/nix/store/v0x660vfdx54vs1kh3rg5r2393xb999v-anyrun-0.1.0.drv
[...]
So anyrun
still need to be build :(
I've taken a look at v0x660vfdx54vs1kh3rg5r2393xb999v-anyrun-0.1.0.drv
:
v0x660vfdx54vs1kh3rg5r2393xb999v-anyrun-0.1.0.drv
And It seems the output 94fg0pxf3j6v2fqyzvy575fls22ibmnl-anyrun-0.1.0
isn't present in the cache
$ curl https://anyrun.cachix.org/94fg0pxf3j6v2fqyzvy575fls22ibmnl.narinfo
404 - Not Found
I've configured my nixos to use https://anyrun.cachix.org following the snippet below home manager module.
When I run
nixos-rebuild ... -vvvv
, in the log, I see I'm usinganyrun.cachix.org
but it result in a cache miss and require me to buildanyrun
.I've done an additional check using
curl
and the entry appear to be missing from the cache: