nix-community / crate2nix

rebuild only changed crates in CI with crate2nix and nix
https://nix-community.github.io/crate2nix/
Apache License 2.0
374 stars 89 forks source link

Feature Request: Support generating nix expressions from a github url or crates.io name #199

Open IndianBoy42 opened 3 years ago

IndianBoy42 commented 3 years ago

I am trying to shift my system to Nix, and I use a lot of tools written in rust using cargo install. Some of them don't have Nix packages yet. This seems like a good tool for generating the Nix expression so I can use it atleast for myself. But afaict for now it would require me to clone the github to generate the nix expression

Are there any workarounds or do you think this feature would be useful?

kolloch commented 3 years ago

There is somewhat preliminary (and stalled) support for out-of-tree builds:

https://github.com/kolloch/crate2nix/blob/master/out-of-tree-sources.md

Ericson2314 commented 3 years ago

Close as duplicate of #102?