Skip to content

Commit ab0f11c

Browse files
committed
yelp
1 parent e8df72c commit ab0f11c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/haskell.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,11 @@ jobs:
5555
- name: Add LMDB to Nix environment
5656
run: |
5757
nix-env -f '<nixpkgs>' -iA lmdb
58-
LMDB_OUT=$(nix-env -q --out-path lmdb)
59-
echo "nix-env output: $LMDB_OUT"
60-
LMDB_DEV=$(echo "$LMDB_OUT" | sed -n 's/.*dev=\([^ ]*\).*/\1/p')
61-
echo "LMDB dev path: $LMDB_DEV"
62-
if [ -n "$LMDB_DEV" ] && [ -d "$LMDB_DEV/lib/pkgconfig" ]; then
63-
echo "PKG_CONFIG_PATH=${LMDB_DEV}/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
64-
echo "Added LMDB dev to PKG_CONFIG_PATH"
58+
LMDB_STORE=$(find /nix/store -maxdepth 1 -name '*lmdb*-dev' -type d | head -1)
59+
echo "LMDB dev store path: $LMDB_STORE"
60+
if [ -n "$LMDB_STORE" ]; then
61+
ls -la "$LMDB_STORE/lib/pkgconfig/" || echo "No pkgconfig dir"
62+
echo "PKG_CONFIG_PATH=${LMDB_STORE}/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
6563
fi
6664
shell: devx {0}
6765
- name: Verify LMDB availability

0 commit comments

Comments
 (0)