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 #27 [hacking npmlock2nix, overriding derivations]

The Nix Hour is an open beginner-oriented 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. Files from this session: https://github.com/tweag/nix-hour/tree/master/27 Jitsi Meeting to ask questions directly: https://meet.jit.si/nix-hour Matrix room for questions, feedback and notifications: https://matrix.to/#/%23nix-hour:matrix.org Issue tracker for asynchronous questions: https://github.com/tweag/nix-hour/issues Previous sessions playlist: https://www.youtube.com/playlist?list=PLyzwHTVJlRc8yjlx4VR4LU5A5O44og9in For more information and updates, check out https://discourse.nixos.org/t/the-nix-hour-a-weekly-nix-qa-lecture-by-tweag/22767 00:00 Intro, audience question about npmlock2nix 00:50 Look at npmlock2nix 03:11 Starting a new Nix project using niv 04:47 Getting example of npmlock2nix failing 07:03 Adding npmlock2nix to the project 12:00 How does npmlock2nix work 19:11 Overriding buildInputs attribute for mkShell result 23:02 Removing unwanted item from buildInputs 25:10 Aside: Comparing derivations in Nix 28:48 Removing unwanted item from buildInputs 29:47 Debugging with lib.debug.trace 34:15 Overriding shellHook 40:15 Debugging unexpected dependency of derivation 48:35 Looking at the end result 49:03 How to make npmlock2nix more overridable 57:25 Out of time, wrapping up


Tracks in this Playlist