nixpkgs/pkgs/os-specific/darwin/stubs/default.nix
2021-01-17 23:26:08 +07:00

16 lines
321 B
Nix

{ lib, stdenv, 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";
}