mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
mpvScripts.smart-copy-paste-2: init at 0-unstable-2023-11-25 (#311388)
This commit is contained in:
commit
582603d702
@ -124,6 +124,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 { };
|
||||
smartskip = callPackage ./smartskip.nix { };
|
||||
sponsorblock = callPackage ./sponsorblock.nix { };
|
||||
sponsorblock-minimal = callPackage ./sponsorblock-minimal.nix { };
|
||||
|
33
pkgs/applications/video/mpv/scripts/smart-copy-paste-2.nix
Normal file
33
pkgs/applications/video/mpv/scripts/smart-copy-paste-2.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
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=";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace scripts/SmartCopyPaste_II.lua \
|
||||
--replace-fail 'xclip' "${lib.getExe xclip}"
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Smart copy paste with logging and clipboard support";
|
||||
homepage = "https://github.com/Eisa01/mpv-scripts";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ luftmensch-luftmensch ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user