From 58620818e6ba78e69aa5bb200670bbb8a601e29e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sat, 11 Oct 2025 10:11:58 +0800 Subject: [PATCH] packages/ffgun: drop hacksaw is nolonger maintained, we need to adapt the shell script --- nix/packages/by-name/ffgun/package.nix | 40 -------------------------- 1 file changed, 40 deletions(-) delete mode 100644 nix/packages/by-name/ffgun/package.nix diff --git a/nix/packages/by-name/ffgun/package.nix b/nix/packages/by-name/ffgun/package.nix deleted file mode 100644 index 4fe27946..00000000 --- a/nix/packages/by-name/ffgun/package.nix +++ /dev/null @@ -1,40 +0,0 @@ -# adapted from https://github.com/neXromancers/hacksaw -{ - writeShellApplication, - shotgun, - ffmpeg_4-full, -}: -writeShellApplication { - name = "ffgun"; - runtimeInputs = [ - shotgun - ffmpeg_4-full - ]; - text = '' - dir=/tmp - current=$(date +%F_%H-%M-%S) - - echo "$dir/$current.mp4" - - hacksaw -n | { - IFS=+x read -r w h x y - - w=$((w + w % 2)) - h=$((h + h % 2)) - - ffmpeg \ - -v 16 \ - -r 30 \ - -f x11grab \ - -s "''${w}x''${h}" \ - -i ":0.0+$x,$y" \ - -preset slow \ - -c:v h264 \ - -pix_fmt yuv420p \ - -crf 20 \ - "$dir/$current.mp4" - } - ''; - - meta.description = "Shotgun's integration script with ffmpeg from their github"; -}