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

Vendoring only mode to support build systems other than cargo #240

Open
ranfdev opened this issue May 17, 2022 · 0 comments
Open

Vendoring only mode to support build systems other than cargo #240

ranfdev opened this issue May 17, 2022 · 0 comments

Comments

@ranfdev
Copy link
Contributor

ranfdev commented May 17, 2022

Naersk is good, but it imposes the use of cargo as a build system. Sometimes meson or make are needed.
If naersk had a vendor-only mode, it could be used alongside buildsystems other than cargo.

For example, to use meson to compile rust projects I need a

stdenv.mkDerivation rec {
  cargoDeps = rustPlatform.importCargoLock {
    lockFile = ../Cargo.lock;
  };
  buildInputs = [meson];
}

naersk could take the place of importCargoLock. The advantage is naersk can fetch git dependencies without me having to specify their hashes

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