2016-11-09 21:26:25 +01:00
|
|
|
{fetchFromGitHub , stdenv, makeWrapper, python, gtk3, libwnck3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "clipster-unstable-${version}";
|
2017-01-09 06:42:15 +01:00
|
|
|
version = "2016-12-08";
|
2016-11-09 21:26:25 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mrichar1";
|
|
|
|
repo = "clipster";
|
2017-01-09 06:42:15 +01:00
|
|
|
rev = "7a3511d89dbbb4157118eec15f1e9e6fd0ad1a6b";
|
|
|
|
sha256 = "005akgk1wn3z5vxfjii202zzwz85zydimfgm69ml68imj5vbhkg1";
|
2016-11-09 21:26:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonEnv = python.withPackages(ps: with ps; [ dbus-python pygtk pygobject3 ]);
|
|
|
|
|
|
|
|
buildInputs = [ pythonEnv gtk3 libwnck3 makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
cp clipster $out/bin/
|
|
|
|
wrapProgram "$out/bin/clipster" \
|
|
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
license = licenses.agpl3;
|
|
|
|
homepage = https://github.com/mrichar1/clipster;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [maintainers.magnetophon];
|
|
|
|
};
|
|
|
|
}
|