haskell / haskell/cabal

extra-pkg-config-dirs directive

Open
#5,144 2 comments 2 reactions 0 assignees View on GitHub
re: pkg-config type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

It would be helpful to have an `extra-pkg-config-dirs` directive, similar to the current `extra-lib-dirs` and `extra-include-dirs` directives. As a NixOS user, I have to include both of these in my `cabal.project` but still need to set `PKG_CONFIG_PATH` manually in my environment.

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing handling for the `extra-lib-dirs` and `extra-include-dirs` directives in Cabal's project configuration. Trace how those directories affect package configuration, then verify that an `extra-pkg-config-dirs` directive would set the corresponding lookup path without requiring a manual `PKG_CONFIG_PATH`; add or update focused tests for the project configuration behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, nixos
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.