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, ... }:
|
||||
{
|
||||
environment.systemPackages = [
|
||||
(pkgs.writeShellApplication {
|
||||
home.packages = [
|
||||
(pkgs.writeShellApplication rec {
|
||||
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"
|
||||
'';
|
||||
text = builtins.readFile "${inputs.rwxrob-dot}/scripts/${name}";
|
||||
})
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue