2019-02-26 12:45:54 +01:00
|
|
|
{ stdenv, writeScriptBin, runtimeShell }:
|
2015-10-29 01:36:20 +01:00
|
|
|
|
|
|
|
let fake = name: stdenv.lib.overrideDerivation (writeScriptBin name ''
|
2019-02-26 12:45:54 +01:00
|
|
|
#!${runtimeShell}
|
2015-10-29 01:36:20 +01: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";
|
|
|
|
}
|