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

How to handle cbits part of this package? #425

Open
locallycompact opened this issue Jul 12, 2023 · 0 comments
Open

How to handle cbits part of this package? #425

locallycompact opened this issue Jul 12, 2023 · 0 comments

Comments

@locallycompact
Copy link
Contributor

locallycompact commented Jul 12, 2023

Hi, I can't seem to build cardano-crypto-class in plain nix (not haskell.nix), due to the cbits library.

I have a cabal2nix expression for cardano-crypto-class and am overriding it with addPkgconfigDepends and addExtraLibraries, and supplying the argument.

  cardano-crypto-class = addPkgconfigDepends (addExtraLibraries (prev.callPackage ./pkgs/cardano-crypto-class.nix { inherit libsodium libblst secp256k1;}) [libblst]) [libblst];

It still results in

error: builder for '/nix/store/rm7kkf407l8k4bph7d217b1qjb6dlwkv-cardano-crypto-class-2.1.2.0.drv' failed with exit code 1;
       last 10 log lines:
       >
       > cbits/blst_util.c:1:10: error:
       >      fatal error: blst.h: No such file or directory
       >         1 | #include "blst.h"
       >           |          ^~~~~~~~
       >   |
       > 1 | #include "blst.h"
       >   |          ^
       > compilation terminated.
       > `gcc' failed in phase `C Compiler'. (Exit code: 1)

I'm pulling libblst from iohk-nix/26f56e32169dcc9ef72ac754eccdb3c96d714751. How do I tell the package where the headers are?

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