You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we have a (json) mapping from pkg-config names to package attribute names, a module could easily add the appropriate deps, without sacrificing the consistency with Nixpkgs-style names when it comes to overriding.
Without a special integration for the mapping, it'd be hard to override things, because pkg-config names ("modules") don't map 1:1 to package attribute names; not even in quantity. For example, to override nix in a program that links it, you'd have to override all of nix-expr, nix-store, nix-main, and make sure not to miss a module if it grows a new one (it has). This is problem is hard to detect. hidapi has different pkg-config names depending on the platform.
The text was updated successfully, but these errors were encountered:
In reality, any number of package attributes can provide any number of pkg-config modules, but usually a default choice will suffice, which is why defaultPkgConfigPackages exists, and why the format only supports a single package attribute per pkg-config module for the initial edition of the json.
The json can be extended with more fields and more complete information, and probably should, but I suggest to take one step at a time. The new or extended schema could be designed bottom up (NixOS/nixpkgs#212290) but should take into account the package generation needs.
Context
pkg-configPackages
NixOS/cabal2nix#594 (comment)If we have a (json) mapping from pkg-config names to package attribute names, a module could easily add the appropriate
deps
, without sacrificing the consistency with Nixpkgs-style names when it comes to overriding.Without a special integration for the mapping, it'd be hard to override things, because pkg-config names ("modules") don't map 1:1 to package attribute names; not even in quantity. For example, to override
nix
in a program that links it, you'd have to override all ofnix-expr
,nix-store
,nix-main
, and make sure not to miss a module if it grows a new one (it has). This is problem is hard to detect.hidapi
has different pkg-config names depending on the platform.The text was updated successfully, but these errors were encountered: