Fix gobject-introspection for haskell-gi (#770)
commit68a5b5001e9b26fdc2a4bd4e81f1bd4d30dcec90
authorHamish Mackenzie <Hamish.Mackenzie@iohk.io>
dateMon 20 Jul 2020, 14:36 (6 years ago)
parent92f1245
overlays/default.nix+2
@@ -16,6 +16,7 @@ let
1616 tools = import ./tools.nix;
1717 emscripten = import ./emscripten.nix;
1818 nix-prefetch-git-minimal = import ./nix-prefetch-git-minimal.nix;
19+ gobject-introspection = import ./gobject-introspection.nix;
1920 eval-on-current = import ./eval-on-current.nix;
2021 eval-on-build = import ./eval-on-build.nix;
2122 };
@@ -46,6 +47,7 @@ let
4647 tools
4748 emscripten
4849 nix-prefetch-git-minimal
50+ gobject-introspection
4951 # Restore nixpkgs haskell and haskellPackages
5052 (_: prev: { inherit (prev.haskell-nix-prev) haskell haskellPackages; })
5153 ];
overlays/gobject-introspection.nixnew file+7
@@ -0,0 +1,7 @@
1+# haskell-gi packages need gobject-introspection turned on
2+final: prev: {
3+ harfbuzz = prev.harfbuzz.overrideAttrs (attr: {
4+ configureFlags = attr.configureFlags ++ [ "--enable-introspection=yes" "--with-gobject=yes" ];
5+ buildInputs = attr.buildInputs ++ [ final.pkgs.gobject-introspection ];
6+ });
7+}