mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/frigate: don't assume grep is on path
This commit is contained in:
parent
0d19fc13ba
commit
f37b8622ce
1 changed files with 1 additions and 1 deletions
|
|
@ -761,7 +761,7 @@ in
|
|||
++ lib.optionals (!config.systemd.services.frigate.environment ? LIBAVFORMAT_VERSION_MAJOR) [
|
||||
# Extract libavformat version to enable version-dependent flags in ffmpeg
|
||||
(pkgs.writeShellScript "frigate-libavformat-major-version" ''
|
||||
echo "LIBAVFORMAT_VERSION_MAJOR=$(${cfg.settings.ffmpeg.path}/bin/ffmpeg -version | grep -Po "libavformat\W+\K\d+")" > /run/frigate/ffmpeg-env
|
||||
echo "LIBAVFORMAT_VERSION_MAJOR=$(${cfg.settings.ffmpeg.path}/bin/ffmpeg -version | ${lib.getExe pkgs.gnugrep} -Po "libavformat\W+\K\d+")" > /run/frigate/ffmpeg-env
|
||||
echo "Detected $(cat /run/frigate/ffmpeg-env)"
|
||||
'')
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue