emptyflask/rails-nix

sassc hack: how did you figure it out?

Opened this issue · 1 comments

Hey, I was struggling with a broken sassc gem and I found this repo with this fix:

gemConfig.sassc = attrs: {
buildInputs = [ libsass ];
shellHook = ''
export SASS_LIBSASS_PATH=${libsass}
'';
};

I'm usually in the dark on how to fix this stuff and I wonder if you can share you how found out you needed to put this shell hook and what variable you needed to set.

Thanks for posting this repo btw, it helped me!

I'm glad it's helpful!

I don't remember where exactly I learned how to modify the configuration for gems like this, but for sassc specifically, they have build instructions that mention the SASS_LIBSASS_PATH env variable.

I just noticed sassc/libsass are deprecated now, by the way. And I don't think it will build with any of the Dart versions in nixpkgs at the moment...