Ah right, I saw that library but it didn’t have examples and I didn’t manage to use it. Do you know a page that would explain that?
Re:Our Roadmap for Nix
by benreesman on Sunday August 07, 2022 @09:42PM
(#32381683)
The ‘flake-utils’ readme is a pretty good jumping off point: https://github.com/numtide/flake-utils
I have this or that nitpick with FL and FLP but overall it’s very solid stuff. FLP is a little more “magical”, and that’s not always the best starting out, but you really can’t go wrong with either.
You can do this up top by hand, e.g. P = inputs.nixpkgs { inherit system; }, but more commonly you would use a library like ‘flake-utils’ or ‘flake-utils-plus’ to issue system configuration for all supported packages to all your packages/derivations/devShells.