Skip to content

Commit 69d1e60

Browse files
committed
Make pkg-config work for haskell-gi setup executables
1 parent 1c9ada0 commit 69d1e60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

builder/make-config-files.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ let
135135
export HASKELL_GI_GIR_SEARCH_PATH
136136
export HASKELL_GI_TYPELIB_SEARCH_PATH
137137
138+
# Make `pkg-config` work for haskell-gi setup executables
139+
PKG_CONFIG_EXE=$(mktemp -d)
140+
ln -s $(${pkgs.which}/bin/which $PKG_CONFIG) $PKG_CONFIG_EXE/pkg-config
141+
export PATH=$PATH:$PKG_CONFIG_EXE
142+
138143
''}
139144
${ # Note: we pass `clear` first to ensure that we never consult the implicit global package db.
140145
# However in `cabal.config` `cabal` requires `global` to be first.

0 commit comments

Comments
 (0)