1 { lib, stdenv, fetchFromGitHub, xsel }:
3 stdenv.mkDerivation rec {
5 name = "yank-${meta.version}";
7 src = fetchFromGitHub {
10 rev = "v${meta.version}";
11 sha256 = "1izygx7f1z35li74i2cwca0p28c3v8fbr7w72dwpiqdaiwywa8xc";
15 installFlags = [ "PREFIX=$(out)" ];
16 makeFlags = [ "YANKCMD=${xsel}/bin/xsel" ];
19 homepage = "https://github.com/mptre/yank";
20 description = "Yank terminal output to clipboard";
22 Read input from stdin and display a selection interface that allows a
23 field to be selected and copied to the clipboard. Fields are determined
24 by splitting the input on a delimiter sequence, optionally specified
25 using the -d option. New line, carriage return and tab characters are
26 always treated as delimiters.
28 downloadPage = "https://github.com/mptre/yank/releases";
29 license = licenses.mit;
31 maintainers = [ maintainers.dochang ];
32 platforms = platforms.unix;