64 lines
1.7 KiB
Nix
64 lines
1.7 KiB
Nix
{pkgs, ...}: let
|
|
coreutils-full-name =
|
|
"coreuutils-full"
|
|
+ builtins.concatStringsSep ""
|
|
(builtins.genList (_: "_") (builtins.stringLength pkgs.coreutils-full.version));
|
|
|
|
coreutils-name =
|
|
"coreuutils"
|
|
+ builtins.concatStringsSep ""
|
|
(builtins.genList (_: "_") (builtins.stringLength pkgs.coreutils.version));
|
|
|
|
findutils-name =
|
|
"finduutils"
|
|
+ builtins.concatStringsSep ""
|
|
(builtins.genList (_: "_") (builtins.stringLength pkgs.findutils.version));
|
|
|
|
diffutils-name =
|
|
"diffuutils"
|
|
+ builtins.concatStringsSep ""
|
|
(builtins.genList (_: "_") (builtins.stringLength pkgs.diffutils.version));
|
|
in {
|
|
system.replaceDependencies.replacements = [
|
|
# coreutils
|
|
{
|
|
# system
|
|
oldDependency = pkgs.coreutils-full;
|
|
newDependency = pkgs.symlinkJoin {
|
|
# Make the name length match so it builds
|
|
name = coreutils-full-name;
|
|
paths = [pkgs.uutils-coreutils-noprefix];
|
|
};
|
|
}
|
|
{
|
|
# applications
|
|
oldDependency = pkgs.coreutils;
|
|
newDependency = pkgs.symlinkJoin {
|
|
# Make the name length match so it builds
|
|
name = coreutils-name;
|
|
paths = [pkgs.uutils-coreutils-noprefix];
|
|
};
|
|
}
|
|
# findutils
|
|
# {
|
|
# # applications
|
|
# oldDependency = pkgs.findutils;
|
|
# newDependency = pkgs.symlinkJoin {
|
|
# # Make the name length match so it builds
|
|
# name = findutils-name;
|
|
# paths = [pkgs.uutils-findutils];
|
|
# };
|
|
# }
|
|
# diffutils
|
|
# {
|
|
# # applications
|
|
# oldDependency = pkgs.diffutils;
|
|
# newDependency = pkgs.symlinkJoin {
|
|
# # Make the name length match so it builds
|
|
# name = diffutils-name;
|
|
# paths = [pkgs.uutils-diffutils];
|
|
# };
|
|
# }
|
|
];
|
|
}
|