Uutils: Difference between revisions
Adding a warning that uutils currently break nixos rebuild |
m fix: parsing |
||
| (One intermediate revision by one other user not shown) | |||
| Line 37: | Line 37: | ||
To do a systemwide replacement of gnu utils with uutils you can use system.replaceDependencies. | To do a systemwide replacement of gnu utils with uutils you can use system.replaceDependencies. | ||
''Warning: as of February 2026 this seems to break nixos-rebuild, as uutils mv uses an interactive prompt where coreutils don't'' | ''Warning: as of February 2026 this seems to break nixos-rebuild, as uutils mv uses an interactive prompt where coreutils don't ([https://github.com/uutils/coreutils/issues/11321 uutils/coreutils#11321])'' | ||
It should be noted that the name of the dependency is hardcoded in the binaries, therefore the name of the replacing dependency needs to have exactly the same length as the name of the source dependency. To do this declaratively this snippet should be added to your configs: | It should be noted that the name of the dependency is hardcoded in the binaries, therefore the name of the replacing dependency needs to have exactly the same length as the name of the source dependency. To do this declaratively this snippet should be added to your configs: | ||
| Line 100: | Line 100: | ||
This is of course still quite a hacky solution, as the name of the resulting binaries will simply be padded with the char '_'. A better solution might be found in the future. | This is of course still quite a hacky solution, as the name of the resulting binaries will simply be padded with the char '_'. A better solution might be found in the future. | ||
<small>For details, see [https://discourse.nixos.org/t/how-to-use-uutils-coreutils-instead-of-the-builtin-coreutils/8904/36?u=malix NixOS - Discourse: "How to use uutils-coreutils instead of the builtin coreutils?" (8904) - Comment 36]</small> | <small>For details, see [https://discourse.nixos.org/t/how-to-use-uutils-coreutils-instead-of-the-builtin-coreutils/8904/36?u=malix NixOS - Discourse: "How to use uutils-coreutils instead of the builtin coreutils?" (8904) - Comment 36]</small> | ||
[[Category:CLI Applications]] | |||
[[Category: | |||
[[Category:Applications]] | [[Category:Applications]] | ||
[[Category:Rust | [[Category:Rust]] | ||