svanderburg / node2nix

Generate Nix expressions to build NPM packages
MIT License
519 stars 99 forks source link

Use top-level cctools when available #334

Open reckenrode opened 2 months ago

reckenrode commented 2 months ago

cctools was updated and migrated to the by-name hierarchy in nixpkgs, which moves it to the top-level. It is also being added to darwin-aliases.nix, which will make the old name unavailable for use in nixpkgs. This change preferentially uses the new name while falling back to the old one for out-of-tree users.

Relevant nixpkgs PRs:

tie commented 1 month ago

@reckenrode, FYI on using cctools with stdenv… https://github.com/NixOS/nixpkgs/blob/ce69c84bea8821b83adee61d34a78c845527c9ee/pkgs/development/web/nodejs/nodejs.nix#L108-L120

reckenrode commented 1 month ago

cctools could gain a libtool output for users who need to use only libtool from it. That seems orthogonal to what this PR is doing.