nix-community / nixpkgs-wayland

Automated, pre-built packages for Wayland (sway/wlroots) tools for NixOS. [maintainers=@colemickens, @Artturin]
510 stars 47 forks source link

use to-cached trick to force the nixpkgs-wayland bundle to get cached #371

Closed colemickens closed 1 year ago

colemickens commented 1 year ago

I think this is the weird issue where nix won't try to substitute the bundle of packages unless you do something special.

This is why it seems like the actions are currently downloading all of the packages with nix-build-uncached instead of fast exiting.

ref: https://github.com/colemickens/nixcfg/blob/main/lib/force_cached.nix

colemickens commented 1 year ago

coincidentally, someone bumped the upstream issue: https://github.com/NixOS/nix/issues/4442

colemickens commented 1 year ago

fixed in: https://github.com/nix-community/nixpkgs-wayland/commit/e8af3f6b71608260bdb96a58c92efc460439a24a

This makes the build job a no-op now, instead of it downloading every packages just because it "prefers" to build the linkFarm locally.