idiosyn/overlay/pkgconf.nix

15 lines
391 B
Nix
Raw Normal View History

2024-08-18 13:47:18 +02:00
{ ... }:
final: prev: {
pkg-config = prev.pkg-config.override {
pkg-config = final.libpkgconf.overrideAttrs (prevAttrs: {
postInstall = let
ext = final.hostPlatform.extensions.executable;
in prevAttrs.postInstall or "" + ''
ln -s pkgconf${ext} "$out/bin/pkg-config${ext}"
ln -s pkgconf.1 "$man/share/man/man1/pkg-config.1"
'';
});
};
}