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

add a system library dependency #20

Open
paolino opened this issue Feb 20, 2019 · 0 comments
Open

add a system library dependency #20

paolino opened this issue Feb 20, 2019 · 0 comments

Comments

@paolino
Copy link

paolino commented Feb 20, 2019

I need to add net_snmp dependency to default.nix. Is there a stanza for that ? (lost in nix)
So in particular, nix-build works , it finds the libnetsnmp.so
cabal new-repl inside nix-shell fails

<command line>: user specified .o/.so/.DLL could not be loaded (libnetsnmp.so: cannot open shared object file: No such file or directory)
Whilst trying to load:  (dynamic) netsnmp

I tried to modify the ./cabal script

/bin/env bash

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

nix-shell  -Q $DIR/default.nix -A shells.ghc  --add-root $DIR/dist-newstyle/gc-roots/gc-root --indirect --run "nix-env -f \"<nixpkgs>\" -iA net_snmp; cabal $(printf "%q " "$@")"

Didn't solve it

@paolino paolino changed the title add an external library dependency add a system library dependency Feb 20, 2019
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

1 participant