mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-04 03:40:18 +00:00
mpvScripts.cut: make ffmpeg binary available (#589084)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
ffmpeg,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
@@ -21,6 +22,9 @@ stdenvNoCC.mkDerivation {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
# Make ffmpeg binary available to script
|
||||
substituteInPlace main.lua --replace-fail "\"ffmpeg\"" "\"${lib.getExe ffmpeg}\""
|
||||
|
||||
install -Dm644 main.lua $out/share/mpv/scripts/cut.lua
|
||||
install -Dm644 utils $out/share/mpv/scripts/cut/utils
|
||||
|
||||
|
||||
Reference in New Issue
Block a user