about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/oscclip/default.nix
blob: 6c68c4a6f24a0d529a7e60dad1cc6b4dfe36e78b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib
, python3Packages
, fetchFromGitHub
}:

python3Packages.buildPythonApplication rec {
  pname = "oscclip";
  version = "0.4.1";

  format = "pyproject";

  src = fetchFromGitHub {
    owner = "rumpelsepp";
    repo = "oscclip";
    rev = "v${version}";
    sha256 = "sha256-WQvZn+SWamEqEXPutIZVDZTIczybtHUG9QsN8XxUeg8=";
  };

  nativeBuildInputs = with python3Packages; [ poetry-core ];

  meta = with lib; {
    description = "A program that allows to copy/paste from a terminal using osc-52 control sequences.";
    longDescription = ''
      oscclip provides two commands: osc-copy and osc-paste. These commands allow to interact with the clipboard through the terminal directly.
      This means that they work through ssh sessions for example (given that the terminal supports osc-52 sequences).
    '';
    homepage = "https://github.com/rumpelsepp/oscclip";

    license = licenses.gpl3Only;
    maintainers = with maintainers; [ rumpelsepp traxys ];
  };
}