Malix
July 9, 2026, 11:31am
42
I just crafted the dynamic alternative:
README.md
# Nix Lib Coreutils
Nix Library for Coreutils
## Setup
### Flakes
```nix
inputs.lib-coreutils = {
This file has been truncated. show original
default.nix
{ lib }:
{
replaceGnuCoreutilsWithUutils = import ./replaceGnuCoreutilsWithUutils.nix;
padName = import ./padName.nix lib;
}
flake.lock
{
"nodes": {
"nixpkgs-lib": {
"locked": {
"lastModified": 1783217952,
"narHash": "sha256-lItVCcSNUiL9NlB0+VoZwhtZk+0jAnfjJjch1g7U0bM=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "830143f1e74a5ce8aa6cdad9c41ae84b73e8b3be",
"type": "github"
This file has been truncated. show original
There are more than three files. show original
I haven’t focused on performance yet
Let me know if anyone can find something better
I think a solution like this is close to what’s the best alternative possible without a dedicated NixOS option to chose which coreutils (and such) to use
Until then, we will always be bottlenecked by replaceDependencies