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

unable to run basic example under nix #159

Open
zoranbosnjak opened this issue Nov 28, 2019 · 1 comment
Open

unable to run basic example under nix #159

zoranbosnjak opened this issue Nov 28, 2019 · 1 comment

Comments

@zoranbosnjak
Copy link

Steps to reproduce:

nix-channel --update
nix-env --upgrade
git clone https://github.com/deech/fltkhs-hello-world.git
cd fltkhs-hello-world/
cabal2nix --shell . > shell.nix
nix-shell
runhaskell -Wall src/hello-world.hs

It fails with the following error:

hello-world.hs: <command line>: can't load .so/.DLL for: /nix/store/pf87mjvij555an8693knn0846hfprvgq-fltkhs-0.8.0.2/lib/ghc-8.6.5/x86_64-linux-ghc-8.6.5/libHSfltkhs-0.8.0.2-GIFoDRNrKJ515glQJcJQyn-ghc8.6.5.so (/nix/store/pf87mjvij555an8693knn0846hfprvgq-fltkhs-0.8.0.2/lib/ghc-8.6.5/x86_64-linux-ghc-8.6.5/libHSfltkhs-0.8.0.2-GIFoDRNrKJ515glQJcJQyn-ghc8.6.5.so: undefined symbol: Fl_Adjuster_New)

The same problem is with any compiled program which depends on fltkhs. It fails in runtime with the same error.

@deech
Copy link
Owner

deech commented Nov 29, 2019

fltkhs does not currently work with Nix and the cabal2nix utility fails because it has a non-trivial Setup.hs Cabal build script.

I know almost nothing about Nix and it would be great to get it working so contributions are welcome.

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