04 - The function call and inherit
How are you supposed to know this? You read it somewhere and copy/paste like the rest of us. Welcome to Nix! I actually still can't find that info in the official docs. If you know where it is, open an issue here.
I think args.system in https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/impure.nix#L17 is why?
Nice find, but still need to find it in the docs! :D
Is it this: https://nix.dev/manual/nix/2.18/language/constructs#inheriting-attributes ?
A helpful link for inherit but unfortunately doesn't solve the puzzle of how to know that this:
makePkgs = import nixpkgs;
pkgs = makePkgs { inherit system; };
...is even a thing. Basically I'm not sure where it says in an official doc somewhere that doing import nixpkgs will give you a function back and that you should pass it an attribute set with system in it.