Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 1.0 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 curl, 5 xclip, 6 wl-clipboard, 7 stdenv, 8 buildLua, 9 unstableGitUpdater, 10}: 11buildLua { 12 pname = "videoclip"; 13 version = "0-unstable-2025-03-10"; 14 15 src = fetchFromGitHub { 16 owner = "Ajatt-Tools"; 17 repo = "videoclip"; 18 rev = "785eb86bc080c445e8feb947d7caa8f3a097bf2b"; 19 hash = "sha256-oanc9MggMjVDrSW42XrQwwWw2YTrifiCVrg/r42oGx8="; 20 }; 21 22 patchPhase = '' 23 substituteInPlace platform.lua \ 24 --replace \'curl\' \'${lib.getExe curl}\' \ 25 '' 26 + lib.optionalString stdenv.hostPlatform.isLinux '' 27 --replace xclip ${lib.getExe xclip} \ 28 --replace wl-copy ${lib.getExe' wl-clipboard "wl-copy"} 29 ''; 30 31 scriptPath = "."; 32 passthru.scriptName = "videoclip"; 33 passthru.updateScript = unstableGitUpdater { }; 34 35 meta = with lib; { 36 description = "Easily create videoclips with mpv"; 37 homepage = "https://github.com/Ajatt-Tools/videoclip"; 38 license = licenses.gpl3Plus; 39 platforms = platforms.all; 40 maintainers = with maintainers; [ BatteredBunny ]; 41 }; 42}