mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
53 lines
2.2 KiB
Nix
53 lines
2.2 KiB
Nix
{fetchFromGitHub , lib, stdenv, python3, gtk3, libwnck,
|
|
gobject-introspection, wrapGAppsHook3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "clipster";
|
|
version = "2.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mrichar1";
|
|
repo = "clipster";
|
|
rev = version;
|
|
sha256 = "sha256-MLLkFsBBQtb7RFQN+uoEmuCn5bnbkYsqoyWGZtTCI2U=";
|
|
};
|
|
|
|
pythonEnv = python3.withPackages(ps: with ps; [ pygobject3 ]);
|
|
|
|
nativeBuildInputs = [ gobject-introspection ];
|
|
buildInputs = [ pythonEnv gtk3 libwnck wrapGAppsHook3 ];
|
|
|
|
installPhase = ''
|
|
sed -i 's/python/python3/g' clipster
|
|
mkdir -p $out/bin/
|
|
cp clipster $out/bin/
|
|
'';
|
|
|
|
meta = with 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.agpl3Only;
|
|
homepage = "https://github.com/mrichar1/clipster";
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.magnetophon ];
|
|
mainProgram = "clipster";
|
|
};
|
|
}
|