From 3c7cb614f11ff6ecb7e840e57e33437bcea4385e Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Mon, 18 Jul 2022 12:34:07 -0700 Subject: visidata: add runtime dependency of clipboard commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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' --- pkgs/applications/misc/visidata/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/visidata/default.nix b/pkgs/applications/misc/visidata/default.nix index e73c6e7b5dc3..4bcf8e8ab5d9 100644 --- a/pkgs/applications/misc/visidata/default.nix +++ b/pkgs/applications/misc/visidata/default.nix @@ -22,6 +22,7 @@ , setuptools , git , withPcap ? true, dpkt, dnslib +, withXclip ? stdenv.isLinux, xclip }: buildPythonApplication rec { pname = "visidata"; @@ -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 -- cgit v1.2.3