about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFrederik Rietdijk <freddyrietdijk@fridh.nl>2016-11-09 23:43:17 +0100
committerGitHub <noreply@github.com>2016-11-09 23:43:17 +0100
commit12d1b5c38871772d84a773e767bf70d963a534c2 (patch)
tree0d751f38025b0a299dee164b0ab96dd6462afa08 /pkgs
parent3b5d5041ef037133f9b848e8ec4b76fde9f2bc88 (diff)
parent2c754df9b3cdba3f5827e1b1dbda240820ab5ad4 (diff)
downloadnixlib-12d1b5c38871772d84a773e767bf70d963a534c2.tar
nixlib-12d1b5c38871772d84a773e767bf70d963a534c2.tar.gz
nixlib-12d1b5c38871772d84a773e767bf70d963a534c2.tar.bz2
nixlib-12d1b5c38871772d84a773e767bf70d963a534c2.tar.lz
nixlib-12d1b5c38871772d84a773e767bf70d963a534c2.tar.xz
nixlib-12d1b5c38871772d84a773e767bf70d963a534c2.tar.zst
nixlib-12d1b5c38871772d84a773e767bf70d963a534c2.zip
Merge pull request #20290 from magnetophon/clipster
clipster: init at unstable 2016-09-12
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/clipster/default.nix50
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/tools/misc/clipster/default.nix b/pkgs/tools/misc/clipster/default.nix
new file mode 100644
index 000000000000..27df38c566bf
--- /dev/null
+++ b/pkgs/tools/misc/clipster/default.nix
@@ -0,0 +1,50 @@
+{fetchFromGitHub , stdenv, makeWrapper, python, gtk3,  libwnck3 }:
+
+stdenv.mkDerivation  rec {
+  name = "clipster-unstable-${version}";
+  version = "2016-09-12";
+
+  src = fetchFromGitHub {
+    owner = "mrichar1";
+    repo = "clipster";
+    rev = "6526a849a0af4c392f4e8e5b18aacdda9c1a8e80";
+    sha256 = "0illdajp5z50h7lvglv0p72cpv4c592xmpamrg8kkjpg693bp873";
+  };
+
+  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];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 4e46a0818a12..0635fd00aecf 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -749,6 +749,8 @@ in
 
   chntpw = callPackage ../tools/security/chntpw { };
 
+  clipster = callPackage ../tools/misc/clipster { };
+
   coprthr = callPackage ../development/libraries/coprthr {
     flex = flex_2_5_35;
   };