Refactor heightwidth
This commit is contained in:
parent
fcc65505d0
commit
8d08b321b3
1 changed files with 6 additions and 7 deletions
|
@ -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"
|
|
||||||
'';
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue