Pkgconfig alias has been officially aliased

With treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix by jonringer · Pull Request #109887 · NixOS/nixpkgs · GitHub now merged, usage of pkgconfig in nixpkgs will now fail with the ofborg’s no-alias check. Please use the pkg-config package.

From the PR:

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.
python3Packages.pkgconfig remained unchanged because
it’s the canonical name of the upstream package
on pypi.

Implications: pkgconfig can still be used, the only time this will fail is if you do something like:

import <nixpkgs> { config.allowAliases = false; }

Most out-of-tree code does not make use of this configuration flag, so it should minimally impact users.

10 Likes

also want to thank @siraben for getting this started with treewide: pkgconfig -> pkg-config by siraben · Pull Request #109595 · NixOS/nixpkgs · GitHub

1 Like

I remember creating the alias a long long time ago. Thanks for finishing this!

2 Likes

Yea, I saw that you made the commit. But my diff had 1600+ changed files, and I was like “Yea… I would do the same, that’s a lot of pain”

1 Like

Graph showing the long rise and short fall of pkgconfig, courtesy of @qyliss https://edef.eu/~qyliss/nix/pkgconfig/

4 Likes