nixpkgs/pkgs/applications/misc/clipit/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
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)
2024-04-27 02:23:22 +02:00

37 lines
1.0 KiB
Nix

{ fetchFromGitHub, lib, stdenv
, autoreconfHook, intltool, pkg-config
, gtk3, libayatana-appindicator, xdotool, which, wrapGAppsHook3 }:
stdenv.mkDerivation rec {
pname = "clipit";
version = "1.4.5";
src = fetchFromGitHub {
owner = "CristianHenzel";
repo = "ClipIt";
rev = "45e2ea386d04dbfc411ea370299502450d589d0c";
sha256 = "0byqz9hanwmdc7i55xszdby2iqrk93lws7hmjda2kv17g34apwl7";
};
preConfigure = ''
intltoolize --copy --force --automake
'';
nativeBuildInputs = [ pkg-config wrapGAppsHook3 autoreconfHook intltool ];
configureFlags = [ "--with-gtk3" "--enable-appindicator=yes" ];
buildInputs = [ gtk3 libayatana-appindicator ];
gappsWrapperArgs = [
"--prefix" "PATH" ":" "${lib.makeBinPath [ xdotool which ]}"
];
meta = with lib; {
description = "Lightweight GTK Clipboard Manager";
inherit (src.meta) homepage;
license = licenses.gpl3Plus;
platforms = platforms.linux;
mainProgram = "clipit";
maintainers = with maintainers; [ kamilchm ];
};
}