Add heightwidth script
All checks were successful
/ check (push) Successful in 2m41s

This commit is contained in:
Oliver Davies 2025-08-07 17:50:54 +01:00
parent 33e72c839a
commit 426edf6c84

View file

@ -0,0 +1,18 @@
{
flake.modules.nixos.pc =
{ pkgs, ... }:
{
environment.systemPackages = [
(pkgs.writeShellApplication {
name = "heightwidth";
runtimeInputs = [ pkgs.ffmpeg ];
# https://github.com/rwxrob/dot/blob/main/scripts/heightwidth.
text = ''
ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of default=noprint_wrappers=1 "$1"
'';
})
];
};
}