8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
15 lines
323 B
Nix
15 lines
323 B
Nix
{ stdenv, writeScriptBin, runtimeShell }:
|
|
|
|
let fake = name: stdenv.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";
|
|
}
|