trunk: trunk v0.14.0 does not work with SASS under NixOS
The sass call seems to cause a problem:
Oct 12 16:43:51.204 ERROR ❌ error
error from HTML pipeline
Caused by:
0: error from asset pipeline
1: error spawning sass call
2: No such file or directory (os error 2)
Error: error from HTML pipeline
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (2 by maintainers)
Would be nice if one can specify path to all binaries in config.
Alright, I have it working.
Caveat, I use flakes, so I have no idea how to make it work without. My public flake has the latest
dart-sassand I will try to keep it up to date as much as I can.Here is tools section that works now:
sassisdart-sassfrom my overlaywasm_bindgeniswasm-bindgen-clifrom nix channels.So much better than my previews webpack setup.
In terms of an easy improvement that trunk could provide for NixOS users, a config option letting us specify a path to the binary would be fantastic. This is because then we aren’t required to have
sassin our system paths and can instead point trunk straight to the binary in the nix store.from what I know, this should work with
trunk-ng. There’s an--offlineargument, which won’t download any tools, but expect those to be present.