about summary refs log tree commit diff
path: root/tools/eprintf.nix
blob: 933d73ea71ae439185634f3da28ef764b983618f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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
  "$@"
]