ToyVo / nh_darwin

Yet another nix cli helper
European Union Public License 1.2
15 stars 3 forks source link

nom and nvd missing on path #11

Closed gigamonster256 closed 2 months ago

gigamonster256 commented 2 months ago

Prior to the changes today, nom did not need to be available on $PATH for nh-darwin to work. However, now it does. This makes nh_darwin invocations fail if the nom binary is not available and no_nom is not specified.

The reason is that nvd and nom are runtime deps but were incorrectly swapped to be build time when package.nix was moved into flake.nix

ToyVo commented 2 months ago

Yes I am aware and am working on a fix. Interestingly the behavior is different on Linux vs Darwin.

The motivation was to switch to crate2nix for faster builds so the dependencies could take advantage of the nix cache.

I would suggest pinning to an earlier Rev temporarily.

ToyVo commented 2 months ago

I should have fixed this with my recent commit, yes I should be more organized and use PRs.

You can confirm the path used in nh with the --verbose flag and the path will be printed at startup to confirm the wrapping works