mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
15 lines
309 B
Nix
15 lines
309 B
Nix
{ stdenv, writeScriptBin }:
|
|
|
|
let fake = name: stdenv.lib.overrideDerivation (writeScriptBin name ''
|
|
#!${stdenv.shell}
|
|
echo >&2 "Faking call to ${name} with arguments:"
|
|
echo >&2 "$@"
|
|
'') (drv: {
|
|
name = "${name}-stub";
|
|
}); in
|
|
|
|
{
|
|
setfile = fake "SetFile";
|
|
rez = fake "Rez";
|
|
derez = fake "DeRez";
|
|
}
|