Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Release lucet, provide a crate #226

Closed
nmattia opened this issue Jun 24, 2019 · 5 comments
Closed

Release lucet, provide a crate #226

nmattia opened this issue Jun 24, 2019 · 5 comments
Assignees

Comments

@nmattia
Copy link

nmattia commented Jun 24, 2019

I'm trying to build lucet using the nix package manager, using the method described here. Using git dependencies is somewhat problematic and it would be much easier to fetch lucet as a crate -- or at least to avoid submodules.

Could lucet be released on crates.io?

@pchickey
Copy link
Contributor

Yes, we'd like to do this, we just never got around to it. Thanks for the reminder!

@jedisct1
Copy link
Contributor

jedisct1 commented Jun 28, 2019

Hi Nicolas!

Good news!

https://crates.io/search?q=lucet

You can now find the Lucet crates on crates.io 🎉

@nmattia
Copy link
Author

nmattia commented Jun 29, 2019

Hi Frank, this is awesome. Thanks!

@antoinerg
Copy link

@nmattia Could you build lucet using Nix? If so, can you share the Nix expression? Thanks a lot

@nmattia
Copy link
Author

nmattia commented Jul 11, 2019

@antoinerg yes I managed using naersk.

If you need to build lucet itself, here's how to do it: https://github.com/nmattia/naersk/blob/2d57092902c39dae5934bdbe48e1907961080009/test.nix#L58-L74

If you just require it as a dependency this should work:

naersk.buildPackage ./path/to/code
  { buildInputs = [ cmake python3 ]; }

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

No branches or pull requests

4 participants