idiosyn/overlay/pkgconf.nix
2024-08-21 21:06:51 +02:00

14 lines
391 B
Nix

{ ... }:
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"
'';
});
};
}