2021-02-05 17:12:51 +00:00
|
|
|
{ lib, writeScriptBin, runtimeShell }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
let fake = name: lib.overrideDerivation (writeScriptBin name ''
|
2020-04-24 23:36:52 +00:00
|
|
|
#!${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";
|
|
|
|
}
|