2021-01-25 08:26:54 +00:00
|
|
|
{ lib, writeScriptBin, runtimeShell }:
|
2015-10-29 00:36:20 +00:00
|
|
|
|
2021-01-15 14:45:37 +00:00
|
|
|
let fake = name: lib.overrideDerivation (writeScriptBin name ''
|
2019-02-26 11:45:54 +00:00
|
|
|
#!${runtimeShell}
|
2015-10-29 00:36:20 +00:00
|
|
|
echo >&2 "Faking call to ${name} with arguments:"
|
|
|
|
echo >&2 "$@"
|
|
|
|
'') (drv: {
|
|
|
|
name = "${name}-stub";
|
|
|
|
}); in
|
|
|
|
|
|
|
|
{
|
|
|
|
setfile = fake "SetFile";
|
|
|
|
rez = fake "Rez";
|
|
|
|
derez = fake "DeRez";
|
|
|
|
}
|