Skip to content

Commit

Permalink
visidata: add runtime dependency of clipboard commands
Browse files Browse the repository at this point in the history
VisiData’s system clipboard commands—

  - Edit → Copy → to system clipboard → …
  - Edit → Paste → from system clipboard → …

—execute subprocesses defined by configuration options:

  - options.clipboard_copy_cmd
  - options.clipboard_paste_cmd

On Linux, these options default to using `xclip`:

  - https://github.com/saulpw/visidata/blob/v2.8/visidata/clipboard.py#L11-L22

Without it, the system clipboard commands fail with:

    FileNotFoundError: [Errno 2] No such file or directory: 'xclip'
  • Loading branch information
AndrewKvalheim committed Jul 20, 2022
1 parent fc9e22f commit 3c7cb61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/applications/misc/visidata/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
, setuptools
, git
, withPcap ? true, dpkt, dnslib
, withXclip ? stdenv.isLinux, xclip
}:
buildPythonApplication rec {
pname = "visidata";
Expand Down Expand Up @@ -63,7 +64,8 @@ buildPythonApplication rec {
zstandard
odfpy
setuptools
] ++ lib.optionals withPcap [ dpkt dnslib ];
] ++ lib.optionals withPcap [ dpkt dnslib ]
++ lib.optional withXclip xclip;

checkInputs = [
git
Expand Down

0 comments on commit 3c7cb61

Please sign in to comment.