os/pkgs/print-label.nix

7 lines
235 B
Nix

self:
with self; ''
TMPDIR=${coreutils}/bin/mktemp
echo "ASN#$1" > "$TMPDIR/input.txt"
${imagemagick}/bin/convert -size 696x64 xc:white -font "FreeMono" -pointsize 48 -fill black -annotate +16+48 "@$TMPDIR/input.txt" test.png
''