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 #33 [overriding OpenSSL in Python, installing Python dependencies]

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/33 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 00:24 Q: Why does Python needs "self" argument to override OpenSSL dependency? 01:07 Verifying locally 02:51 Using "self" in overlays instead of "rec", compared to "super" 04:15 Debugging why derivation is left unchanged 05:58 Looking for python package sources from all-packages.nix 06:55 Using unsafeGetAttrPos to find package sources. 08:38 Looking for python defined in aliases.nix 11:24 Overriding Python packages in overlays. 13:38 Q: Why does python3Packages exist? 15:54 Digging into pythonInterpreters 17:33 pythonPackagesExtensions 18:21 Cross-compilation support via __splicedPackages, makeScopeWithSplicing 22:17 Comparing normal Python and spliced one 24:00 Checking how callPackage generates __splicedPackages 26:50 Checking how cross-compilation platforms are set 28:20 Looking at cross-compilation in stdenv 30:34 Checking Python section of the manual 32:17 Debugging the nixpkgs overlay 36:49 Looking at the resulting derivation itself 44:27 Finding out how openssl argument is handled in Python package 46:32 Q: How to manage dependencies for Python project with Nix 47:13 Looking for gdal package in nixpkgs 49:07 "Installing" python package on NixOS system 54:41 Adding Python packages to env with python3.withPackages 55:42 Need for parethesis in packages list 57:09 Other options 58:05 Signoff


Tracks in this Playlist