Hi,
I am trying to install the attic binary cache on an aarch64 VPS, but it lacks the resources to build atticd every time. I found out that atticd is built as part of nixpkgs, but now I wonder why it does not get fetched from the binary cache. I have disabled all overlays in the NixOS module and made sure to set the package to pkgs.attic-server. I have also tried using it in a nix shell, which triggered a rebuild as well.
Has anyone experienced a similar issue or maybe has a clue as to what the cause might be?
Hm so it seems like there is no build job for it in unstable/aarch64-linux or 24.05/aarch64-linux which I am using. @aciceri@zhaofengli I am not sure what the official procedure for this is, as it is more a hydra thing that a nixpkgs thing, but maybe you can help anyway?
[jzbor@desktop-i5] ~ hydra-check attic-server --channel 24.05 --arch aarch64-linux
Build Status for nixpkgs.attic-server.aarch64-linux on 24.05
⚠ This job is not a member of the latest evaluation of its jobset. This means it was removed or had an evaluation error.
[jzbor@desktop-i5] ~ hydra-check attic-server --channel 24.05 --arch x86_64-linux
Build Status for nixpkgs.attic-server.x86_64-linux on 24.05
✔ attic-0.1.0 from 2024-05-22 - https://hydra.nixos.org/build/260924153
[nix-shell:~]$ hydra-check attic-server --channel 24.05 --arch aarch64-linux
Build Status for nixpkgs.attic-server.aarch64-linux on 24.05
✔ attic-0.1.0 from 2024-06-12 - https://hydra.nixos.org/build/262716795
And substitution works fine on my aarch64-linux
nix-shell -p attic-server this path will be fetched (8.98 MiB download, 41.25 MiB unpacked):
/nix/store/q8gj39xa0bsnhx7rnzdrbp66cmp1bp1d-attic-0.1.0
copying path '/nix/store/q8gj39xa0bsnhx7rnzdrbp66cmp1bp1d-attic-0.1.0' from 'https://cache.nixos.org'...
[nix-shell:~]$ uname -a
Linux watchtower 6.6.32 #1-NixOS SMP Sat May 25 14:22:56 UTC 2024 aarch64 GNU/Linux
So are you sure that you are on the right nixpkgs commit?
Sooooo, i looked the behavior now.
The problem is the attic flake and module. The flake exposes a module called the same (so attic-server) and the flake automatically applies and overlay on two positions:
That a overlay is the problem is also an idication that it worked with nixpkgs.legacyPackages.aarch64-linux.attic-server;, which has no overlays applied.
Thanks alot, this solved my issues! I tried playing around with the useFlakeCompatOverlay, but I still used the module as flake output - including the file directly this fixed it!