-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
darwin: add impure-cmds #109626
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
darwin: add impure-cmds #109626
Conversation
6299cf3
to
66cb52b
Compare
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 2 packages marked as broken and skipped:
2 packages failed to build and are new build failures:
derivation '/nix/store/s7nlycb2cf17dgw9w2rc5gzbh27jxx89-ditto-impure-darwin.drv' requested impure path '/usr/bin/ditto', but it was not in allowed-impure-host-deps |
On darwin, there are some commands neither opensource nor able to build in nixpkgs. We have no choice but to use those system-shipped impure ones.
66cb52b
to
5f1d105
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.
LGTM
This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 2 packages marked as broken and skipped:
2 packages built:
|
Hmmm... I understand that from a bootstrap perspective, "sudo" would need to be owned by uid 0 and have the setuid bit set to do anything useful. Would people be opposed to add a 2nd alias to all-packages.nix that still makes it available for darwin? Not sure if there's any precedence for that. |
IMO we should just revert the change to pkgs/top-level/all-packages.nix and keep impure stuff in |
I'm not sure about this, overall. Packages in Nixpksg for NixOS and Linux don't get any setuid, why would we have impure packages for this on darwin? |
@grahamc Well, to be fair, this doesn't (and can't) create any suid files in the store, only a symlink. We could consider this as a fine-grained alternative to |
Motivation for this change
On darwin, there are some commands neither opensource nor able to build in nixpkgs.
We have no choice but to use those system-shipped impure ones.
cc @matthewbauer @veprbl
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)