-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
coreutils: split a coreutils-full version #45720
Conversation
`tool --version` now gets additional line: Packaged by https://NixOS.org
- default coreutils is stripped of /share/ (11 -> 2 MiB) - coreutils-full retains /share/ and adds openssl for faster *sum tools - NixOS systemPackages contains coreutils-full - *Support parameter defaults are moved inside (it seemed confusing to have `? false` and "at once" with `? isLinux`) Closure considerations: + typical build-time closure will get lighter by ~9 MiB - typical closure of NixOS installation will grow by ~2 MiB, due to referring to both versions. I think it would be possible to re-use most of the utils between the two versions, but the expression would get much more complex. I considered having stdenv with minimal coreutils and the default `coreutils` attribute being full, but it turned out there were too many trivial references in nixpkgs, so it didn't seem easy to keep rebuild impact of openssl from growing significantly.
I chose a generic name |
}; | ||
|
||
coreutils = callPackage ../tools/misc/coreutils { }; | ||
coreutils-full = coreutils.override { minimal = false; }; |
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.
Would be coreutils-full be part of NixOS?
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.
Yes, see the nixos/*
part of the diff: https://github.com/NixOS/nixpkgs/pull/45720/files#diff-dcba170e079cd72958889058d01a4a02R16 ;-)
Success on aarch64-linux (full log) Attempted: coreutils Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: coreutils Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: coreutils Partial log (click to expand)
|
Are dashes in attributes the official convention now? I think the manual still mentions not to do that. |
Failure on aarch64-linux (full log) Attempted: pkgsCross.scaleway-c1.coreutils-full, pkgsCross.armv7l-hf-multiplatform.coreutils-full Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: pkgsCross.scaleway-c1.coreutils-full, pkgsCross.armv7l-hf-multiplatform.coreutils-full Partial log (click to expand)
|
Motivation for this change
Have faster
*sum
utilities. Details in commits and previous discussion threads: #44937 Please comment what you think.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)