darwin.stubs.*: drop

These are no longer used, and it doesn’t seem worth keeping inert
stubs for deprecated commands around.
This commit is contained in:
Emily
2025-04-20 23:17:49 +01:00
parent ed8925fc50
commit a1f516820b
3 changed files with 4 additions and 27 deletions
-25
View File
@@ -1,25 +0,0 @@
{
lib,
writeScriptBin,
runtimeShell,
}:
let
fake =
name:
lib.overrideDerivation
(writeScriptBin name ''
#!${runtimeShell}
echo >&2 "Faking call to ${name} with arguments:"
echo >&2 "$@"
'')
(drv: {
name = "${name}-stub";
});
in
{
setfile = fake "SetFile";
rez = fake "Rez";
derez = fake "DeRez";
}
+4
View File
@@ -90,4 +90,8 @@ mapAliases ({
### P ###
postLinkSignHook = throw "'darwin.postLinkSignHook' has been removed because it is obsolete"; # added 2025-02-23
### S ###
stubs = throw "'darwin.stubs.*' have been removed as they were unused"; # added 2025-04-20
})
-2
View File
@@ -204,8 +204,6 @@ makeScopeWithSplicing' {
openwith = callPackage ../os-specific/darwin/openwith { };
stubs = pkgs.callPackages ../os-specific/darwin/stubs { };
trash = callPackage ../os-specific/darwin/trash { };
inherit (self.file_cmds) xattr;