The Nix Hour

The Nix Hour is a weekly beginner-oriented improvised QA-style lecture on Nix, hosted by Tweag. Here you can bring your questions and we'll answer them with more context, examples, alternatives, tradeoffs and related topics. These meetings are open for anybody to join, but also recorded and uploaded to the Tweag YouTube channel. For more information check out https://discourse.nixos.org/t/the-nix-hour-a-weekly-nix-qa-lecture-by-tweag/22767

Curated by: Tweag by Modus Create (81 videos)


Currently Playing: The Nix Hour #6 [closure size debugging]

The Nix Hour is a weekly beginner-oriented improvised Q&A-style lecture on Nix, where you can bring your questions and we'll answer them with more context, examples, alternatives, tradeoffs and related topics. The Nix hour happens every week, is open to the public and is recorded and uploaded to the Tweag YouTube channel. For more info check out https://discourse.nixos.org/t/the-nix-hour-a-weekly-nix-qa-lecture-by-tweag/22767 This week we looked at debugging closure sizes: 00:00 Finding a good package to demonstrate disallowedReferences 04:00 Looking up historical build times and closure sizes on Hydra 07:46 disallowedReferences and allowedReferences and related attributes in the manual 10:16 Triggering the disallowedReferences error 10:54 allowedReferences demo using nix-store --query 16:00 "Accidentally" adding a C compiler to the result 17:08 Querying the closure size with nix path-info -S 19:33 nix why-depends 24:10 nix why-depends with flake references 26:21 Best practices around using allowedReferences and co. 32:43 (meta) Future GitHub issue tracker for Nix Hour questions 33:40 Forcefully preventing dependencies with removeReferencesTo 37:15 Gracefully preventing dependencies by changing relevant Nix expressions 45:40 How runtime dependencies in Nix work


Tracks in this Playlist