Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 44 lines 1.2 kB view raw
1{ 2 lib, 3 buildLua, 4 fetchFromGitHub, 5 unstableGitUpdater, 6}: 7 8buildLua { 9 pname = "easycrop"; 10 version = "0-unstable-2018-01-24"; 11 12 src = fetchFromGitHub { 13 owner = "aidanholm"; 14 repo = "mpv-easycrop"; 15 rev = "b8a67bb9039e19dec54d92ea57076c0c98e981aa"; 16 hash = "sha256-VRQP8j/Z/OvVqrEpvWcLmJFotxbTRynHoqvfIQIQmqY="; 17 }; 18 19 scriptPath = "easycrop.lua"; 20 21 passthru.updateScript = unstableGitUpdater { }; 22 23 meta = { 24 description = "Manually crop videos during playback in mpv"; 25 longDescription = '' 26 A simple mpv script for manually cropping videos with ease. 27 28 - Works during video playback 29 - No need to re-encode or modify video files 30 31 Press "c" to begin cropping. Click at one corner of the desired 32 cropping rectangle, and click a second time at the opposite 33 corner; the video will be cropped immediately. Pressing "c" again 34 will undo the current crop. 35 36 If you wish to use a key other than "c" to crop, the keybind 37 `easy_crop` can be changed. 38 ''; 39 homepage = "https://github.com/aidanholm/mpv-easycrop"; 40 license = lib.licenses.gpl3; 41 platforms = lib.platforms.all; 42 maintainers = with lib.maintainers; [ RossSmyth ]; 43 }; 44}