Refactor heightwidth

This commit is contained in:
Oliver Davies 2025-08-08 02:13:15 +01:00
parent fcc65505d0
commit 8d08b321b3

View file

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