Closed happysalada closed 2 years ago
You need to pass in the pkgs
to Cargo.nix
while you are importing it in default.nix
in the same folder. So adding pkgs
to the arguments and inherit pkgs;
in import Cargo.nix { ... }
works fine.
Thanks a lot of the help on this!
I tried modifying the system attribute inside the import, but the best thing was indeed to pass pkgs directly.
I tried removing the nixpkgs = ...
line as well since it didn't seem needed.
After adding a package in nixpkgs with crate2nix, I'm experiencing some problems using it with flakes.
When I try to add it, I get the following stacktrace
it looks like in the call to import nixpkgs, the system attribute is not passed. I'm wondering how to best solve this issue. currently trying a few things.
You can test this in nixpkgs master by running
nix build .#meilisearch -L
it will give you the whole stackstrace.