Hello,

"Yury G. Kudryashov" <[email protected]> writes:

> I propose to use the following style.

What are you trying to solve?

> In all-packages.nix:
>
> mypkg = makeOverridable (import ../path/to/mypkg) ( pkgs // { cg = 
> getPkgConfig "mypkg"; } );

It feels wrong to pass all of Nixpkgs to the package function when said
function only needs a few of them.  It breaks the principle of least
authority.

Thanks,
Ludo’.

_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to