core/pkgs/by-name/da/darwin/packages/stubs/default.nix

16 lines
313 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ 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";
}