ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
15 lines
313 B
Nix
15 lines
313 B
Nix
{ 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";
|
|
}
|