-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rubyPackages/sass-embedded: init at 1.62.1 #233655
Conversation
883386d
to
d50d6a2
Compare
d50d6a2
to
b1aed53
Compare
This gem attempts to download dart-sass-embedded at build time, and that does not work with Nix. Patch it to find nixpkgs-provided dart-sass-embedded.
b1aed53
to
39c3a17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Close this PR as stale.
@@ -697,6 +697,16 @@ in | |||
buildFlags = [ "--disable-lto" ]; | |||
}); | |||
|
|||
sass-embedded = _attrs: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AndersonTorres Re: #233655 (comment):
Hm… but throughout the rest of the same file (and throughout the rest of nixpkgs, AFAIK) this convention is not held. I would suggest to align with the prevailing custom and revert it back to attrs
(no underscore).
# Skip sass_embedded step, replace exe path with nixpkgs' dart-sass-embedded | ||
postPatch = '' | ||
substituteInPlace ext/sass/Rakefile \ | ||
--replace "'embedded.rb' => %w[sass_embedded] " "'embedded.rb'" \ | ||
--replace "sass_embedded/dart-sass-embedded" "${dart-sass-embedded}/bin/dart-sass-embedded" | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In later versions of the gem, these strings no longer appear. This PR really is stale and should be closed.
Closing as stale |
This gem is part of Jekyll's default dependency tree, meaning that newly locked bundix-managed jekyll projects will use it (and eventually
rubyPackages.jekyll
will probably, too, at some point).It, however, will fail to build under nix, as its build step tries to fetch dart-sass-embedded from the internet. This PR adds
rubyPackages.sass-embedded
to nixpkgs and patches it to use nixpkgs'dart-sass-embedded
, fixing the build.Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)