2019-02-26 11:45:54 +00:00
|
|
|
{ stdenv, writeScriptBin, runtimeShell }:
|
2015-10-29 00:36:20 +00:00
|
|
|
|
|
|
|
let fake = name: stdenv.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";
|
|
|
|
}
|