2021-06-23 18:22:04 +00:00
|
|
|
{fetchFromGitHub , lib, stdenv, python3, gtk3, libwnck,
|
2024-04-26 20:24:03 +00:00
|
|
|
gobject-introspection, wrapGAppsHook3 }:
|
2016-11-09 20:26:25 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "clipster";
|
2022-03-05 13:24:12 +00:00
|
|
|
version = "2.1.1";
|
2016-11-09 20:26:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mrichar1";
|
|
|
|
repo = "clipster";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2022-03-05 13:24:12 +00:00
|
|
|
sha256 = "sha256-MLLkFsBBQtb7RFQN+uoEmuCn5bnbkYsqoyWGZtTCI2U=";
|
2016-11-09 20:26:25 +00:00
|
|
|
};
|
|
|
|
|
2017-01-10 20:10:44 +00:00
|
|
|
pythonEnv = python3.withPackages(ps: with ps; [ pygobject3 ]);
|
2016-11-09 20:26:25 +00:00
|
|
|
|
2023-06-22 11:49:31 +00:00
|
|
|
nativeBuildInputs = [ gobject-introspection ];
|
2024-04-26 20:24:03 +00:00
|
|
|
buildInputs = [ pythonEnv gtk3 libwnck wrapGAppsHook3 ];
|
2016-11-09 20:26:25 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2017-01-10 20:10:44 +00:00
|
|
|
sed -i 's/python/python3/g' clipster
|
2016-11-09 20:26:25 +00:00
|
|
|
mkdir -p $out/bin/
|
|
|
|
cp clipster $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-11-09 20:26:25 +00:00
|
|
|
description = "lightweight python clipboard manager";
|
|
|
|
longDescription = ''
|
|
|
|
Clipster was designed to try to add a good selection of useful features, while avoiding bad design decisions or becoming excessively large.
|
|
|
|
Its feature list includes:
|
|
|
|
- Event driven, rather than polling. More efficient, helps with power management.
|
|
|
|
- Control over when it write to disk, for similar reasons.
|
|
|
|
- Command-line options/config for everything.
|
|
|
|
- No global keybindings - that's the job of a Window Manager
|
|
|
|
- Sensible handling of unusual clipboard events. Some apps (Chrome, Emacs) trigger a clipboard 'update event' for every character you select, rather than just one event when you stop selecting.
|
|
|
|
- Preserves the last item in clipboard after an application closes. (Many apps clear the clipboard on exit).
|
|
|
|
- Minimal dependencies, no complicated build/install requirements.
|
|
|
|
- utf-8 support
|
|
|
|
- Proper handling of embedded newlines and control codes.
|
|
|
|
- Smart matching of urls, emails, regexes. (extract_*)
|
|
|
|
- Option to synchronise the SELECTION and CLIPBOARD clipboards. (sync_selections)
|
|
|
|
- Option to track one or both clipboards. (active_selections)
|
|
|
|
- Option to ignore clipboard updates form certain applications. (filter_classes)
|
|
|
|
- Ability to delete items in clipboard history.
|
|
|
|
'';
|
2024-03-19 12:26:06 +00:00
|
|
|
license = licenses.agpl3Only;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mrichar1/clipster";
|
2016-11-09 20:26:25 +00:00
|
|
|
platforms = platforms.linux;
|
2017-04-01 15:16:51 +00:00
|
|
|
maintainers = [ maintainers.magnetophon ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "clipster";
|
2016-11-09 20:26:25 +00:00
|
|
|
};
|
|
|
|
}
|