monitorcontrol: 4.2.0 → 4.3.3 (#375061)
[NixPkgs.git] / pkgs / applications / video / mpv / scripts / smart-copy-paste-2.nix
blobdab4a7ddfcd9dcc5576ddb85a36d218471ab1e36
2   lib,
3   buildLua,
4   fetchFromGitHub,
5   unstableGitUpdater,
6   xclip,
7 }:
8 buildLua (finalAttrs: {
9   pname = "smart-copy-paste-2";
10   version = "0-unstable-2023-11-25";
12   scriptPath = "scripts/SmartCopyPaste_II.lua";
13   src = fetchFromGitHub {
14     owner = "Eisa01";
15     repo = "mpv-scripts";
16     rev = "48d68283cea47ff8e904decc9003b3abc3e2123e";
17     hash = "sha256-95CAKjBRELX2f7oWSHFWJnI0mikAoxhfUphe9k51Qf4=";
18   };
20   prePatch = ''
21     substituteInPlace scripts/SmartCopyPaste_II.lua \
22       --replace-fail 'xclip' "${lib.getExe xclip}"
23   '';
25   passthru.updateScript = unstableGitUpdater { };
27   meta = with lib; {
28     description = "Smart copy paste with logging and clipboard support";
29     homepage = "https://github.com/Eisa01/mpv-scripts";
30     license = licenses.bsd2;
31     maintainers = with maintainers; [ luftmensch-luftmensch ];
32   };