on iko/ghcjs-patch-master help sign in
Fix gobject-introspection for haskell-gi (#770)
68a5b50Hamish Mackenzie
overlays/default.nix+2
@@ -16,6 +16,7 @@ let
16 tools = import ./tools.nix;
16 tools = import ./tools.nix;
17 emscripten = import ./emscripten.nix;
17 emscripten = import ./emscripten.nix;
18 nix-prefetch-git-minimal = import ./nix-prefetch-git-minimal.nix;
18 nix-prefetch-git-minimal = import ./nix-prefetch-git-minimal.nix;
19+ gobject-introspection = import ./gobject-introspection.nix;
19 eval-on-current = import ./eval-on-current.nix;
20 eval-on-current = import ./eval-on-current.nix;
20 eval-on-build = import ./eval-on-build.nix;
21 eval-on-build = import ./eval-on-build.nix;
21 };
22 };
@@ -46,6 +47,7 @@ let
46 tools
47 tools
47 emscripten
48 emscripten
48 nix-prefetch-git-minimal
49 nix-prefetch-git-minimal
50+ gobject-introspection
49 # Restore nixpkgs haskell and haskellPackages
51 # Restore nixpkgs haskell and haskellPackages
50 (_: prev: { inherit (prev.haskell-nix-prev) haskell haskellPackages; })
52 (_: prev: { inherit (prev.haskell-nix-prev) haskell haskellPackages; })
51 ];
53 ];
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+}