about summary refs log blame commit diff
path: root/tools/eprintf.nix
blob: eeacca4c8c72bd2fcb8621d9e44968285e24a226 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                       
{ depot, pkgs, ... }:

let
  bins = depot.nix.getBins pkgs.coreutils [ "printf" ];

# printf(1), but redirect to stderr
in depot.nix.writeExecline "eprintf" {} [
  "fdmove" "-c" "1" "2" bins.printf "$@"
]