tweag / nix-hour

Questions for the weekly Nix Hour
MIT License
78 stars 3 forks source link

Getting Started Reading the Nixpkgs source. #7

Closed TheZombie1999 closed 1 year ago

TheZombie1999 commented 1 year ago

Hi when i trie to develop a nix derivation i often run into problems. To solve these issues i would be of great benifit to start reading the nixpkgs source code. But when i try read the source i can never find what i need. It would be great if you could give a briev overview how nixpkgs is structured and where one can find common nix expressions.

One of the most common expressions that i would like to look up ist stdenv.mkDerivation maybe you could use this as a starting point.

infinisil commented 1 year ago

We covered a lot of this in the last Nix Hour #13. While there's more things I could cover, please write another comment with more specifics or a separate issue :)