Skip to content

Commit

Permalink
smart-copy-paste-2: init at 0-unstable-2023-11-25
Browse files Browse the repository at this point in the history
  • Loading branch information
luftmensch-luftmensch committed Oct 19, 2024
1 parent ff98479 commit 917f9a5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/applications/video/mpv/scripts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ let
quality-menu = callPackage ./quality-menu.nix { };
reload = callPackage ./reload.nix { };
simple-mpv-webui = callPackage ./simple-mpv-webui.nix { };
smart-copy-paste-2 = callPackage ./smart-copy-paste-2.nix { };
sponsorblock = callPackage ./sponsorblock.nix { };
sponsorblock-minimal = callPackage ./sponsorblock-minimal.nix { };
thumbfast = callPackage ./thumbfast.nix { };
Expand Down
30 changes: 30 additions & 0 deletions pkgs/applications/video/mpv/scripts/smart-copy-paste-2.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
lib,
buildLua,
fetchFromGitHub,
unstableGitUpdater,
xclip,
}:
buildLua (finalAttrs: {
pname = "smart-copy-paste-2";
version = "0-unstable-2023-11-25";

scriptPath = "scripts/SmartCopyPaste_II.lua";
src = fetchFromGitHub {
owner = "Eisa01";
repo = "mpv-scripts";
rev = "48d68283cea47ff8e904decc9003b3abc3e2123e";
hash = "sha256-95CAKjBRELX2f7oWSHFWJnI0mikAoxhfUphe9k51Qf4=";
};

buildInputs = [ xclip ];

passthru.updateScript = unstableGitUpdater { };

meta = with lib; {
description = "Smart copy paste with logging and clipboard support";
homepage = "https:/Eisa01/mpv-scripts";
license = licenses.bsd2;
maintainers = with maintainers; [ luftmensch-luftmensch ];
};
})

0 comments on commit 917f9a5

Please sign in to comment.