Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Somehow document how to make cabal new-repl work with nix shell #556

Open
colonelpanic8 opened this issue Oct 26, 2022 · 2 comments
Open

Comments

@colonelpanic8
Copy link
Member

See NixOS/nixpkgs#56860

cabal configure $(tr <<< "$NIX_LDFLAGS" ' ' '\n' | sed 's|-L|--extra-lib-dirs=|;t;d')

seems to work

@ParetoOptimalDev
Copy link

Even with that command I get this as of 253c10f:

$ cabal configure $(tr <<< "$NIX_LDFLAGS" ' ' '\n' | sed 's|-L|--extra-lib-dirs=|;t;d') && cabal build
'cabal.project.local' already exists, backing it up to 'cabal.project.local~'.
Build profile: -w ghc-9.2.4 -O1
In order, the following will be built (use -v for more details):
 - taffybar-4.0.0 (lib) (first run)
 - taffybar-4.0.0 (exe:taffybar) (first run)
Configuring library for taffybar-4.0.0..
Error: .cabal-wrapped:
'/nix/store/v73ppkjk196bwsjm6yy9yv80bdq7q68v-pkg-config-wrapper-0.29.2/bin/pkg-config'
exited with an error:
Package libdeflate was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdeflate.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libdeflate', required by 'libtiff-4', not found

Error: cabal: Failed to build taffybar-4.0.0 (which is required by
exe:taffybar from taffybar-4.0.0). The failure occurred during the configure
step.

@colonelpanic8
Copy link
Member Author

you probably need to add libdeflate to the build inputs of the shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants