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)

Most upvoted comments

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-sass and I will try to keep it up to date as much as I can.

Here is tools section that works now:

[tools]
sass = "1.49.0"
wasm_bindgen = "0.2.78"

sass is dart-sass from my overlay wasm_bindgen is wasm-bindgen-cli from 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 sass in 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 --offline argument, which won’t download any tools, but expect those to be present.