tvl-depot/tools/eprintf.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
218 B
Nix
Raw Normal View History

{ 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
"$@"
]