haskell.nix/overlays/gobject-introspection.nix

10 lines
571 B
Nix
Raw Normal View History

# haskell-gi packages need gobject-introspection turned on
final: prev: {
# As of nixpkgs 20.09 harfbuzz is built with mesonFlags and hopefully includes
# gobject introspection correctly. Older nixpkgs will have configureFlags to update.
harfbuzz = prev.harfbuzz.overrideAttrs (attr: final.lib.optionalAttrs (final.lib.versionOlder final.lib.trivial.release "20.09") {
configureFlags = attr.configureFlags or [] ++ [ "--enable-introspection=yes" "--with-gobject=yes" ];
buildInputs = attr.buildInputs or [] ++ [ final.pkgs.gobject-introspection ];
});
}