summary refs log blame commit diff
path: root/pkgs/os-specific/darwin/stubs/default.nix
blob: 862305a069d6083ad126dc53d2fcab20311e2404 (plain) (tree)
1
2
3
4
                                      
 
                                                               
                   










                                                   
{ lib, writeScriptBin, runtimeShell }:

let fake = name: 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";
}